@extends('layouts.master') @section('title', 'Add/Edit Employee Contract Settings') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') @include('layouts.title') @yield('title'):{{ $faculty->faculty_title }} {{ $faculty->faculty_name }} @if (empty($faculty->faculty_picture) || $faculty->faculty_picture === 'profile.jpg') {{-- แสดงอักษรย่อ --}} {{ strtoupper( mb_substr(explode(' ', $faculty->faculty_name)[0], 0, 1) . mb_substr(explode(' ', $faculty->faculty_name)[1] ?? '', 0, 1) ) }} @else {{-- แสดงรูป --}} @endif {{ $faculty->faculty_title }} {{ $faculty->faculty_name }} {{ $faculty->school_name }} ({{ $faculty->school_shortname }}) I. Employee Contract {{ csrf_field() }} A. Employment Track {{-- ===== Employment Track ===== --}} Regular Teaching Oriented Mission Based {{-- ================= REGULAR ================= --}} Regular Options I. Contract Type (1-60) II. Contract Range (after 60) {{-- I. Contract Type --}} {{-- Contract Type --}} Select Contract Type @foreach ($contracts as $item) fcontract_contract_type_id == $item->contract_id) ? 'selected' : '' }}> {{ $item->contract_type }} @endforeach Contract Type * {{-- Contract No --}} Contract No. {{-- II. Contract Range --}} Select Contract Range @foreach ($age_type as $age) fcontract_age_type_id == $age->age_type_id) ? 'selected' : '' }}> {{ $age->age_type_name }} @endforeach Contract Range * Contract No. {{-- ================= TEACHING ================= --}} Teaching Oriented Select Teaching Oriented Type @foreach ($teaching_type as $item) fcontract_teaching_type_id == $item->teaching_type_id) ? 'selected' : '' }}> {{ $item->teaching_type_name }} @endforeach Teaching Oriented Type * Contract No. {{-- ================= MISSION ================= --}} Mission Based Select Mission Based Type @foreach ($mission_type as $item) fcontract_mission_type_id == $item->mission_type_id) ? 'selected' : '' }}> {{ $item->mission_type_name }} @endforeach Mission Based Type * Contract No. Workload Arrangement Unit Value @foreach($WAMissions as $w) @php $existing = $mission_value ->where('value_WAMission_id', $w->WAMission_id) ->first(); @endphp {{ $w->WAMission_title }} {{ $w->unit_name ?? '-' }} @endforeach B. Academic Rank Please Select Academic Rank @foreach ($academic_rank as $id => $item) academic_rank_id ? 'selected' : '' }}>{{ $item->academic_rank_name }} @endforeach Academic Rank * C. Affiliated Fund @foreach ($fund as $item) fcontract_fund == $item->fund_id) ? 'checked' : '' }}> {{ $item->fund_name }} @endforeach D. Period Start Date End Date Required Documents File size maximum 10 MB (.PDF) 1.Academic Rank Appointment Browse 2.TOR Browse {{ $fcontract_remark ?? '' }} Remark Draft Active Expired by admin Cancelled Status* * These fields are required. @include('layouts.footer') @endsection
{{ $faculty->school_name }} ({{ $faculty->school_shortname }})
* These fields are required.