@extends('layouts.master') @section('title', 'Teaching Load') @section('content') @include('layouts.header') @include('layouts.title')
{{-- ================================================= --}} {{-- HEADER --}} {{-- ================================================= --}}

Teaching Load

{{ $faculty->faculty_title ?? '' }} {{ $faculty->faculty_firstname ?? '' }} {{ $faculty->faculty_lastname ?? '' }}
{{-- ================================================= --}} {{-- EMPLOYEE CONTRACT --}} {{-- ================================================= --}}
Employee Contract
@forelse($fcontracts as $contract)
Contract ID
{{ $contract->fcontract_id }}
Start Date
{{ $contract->fcontract_start_date ?? '-' }}
End Date
{{ $contract->fcontract_end_date ?? '-' }}
Status
{{ $contract->fcontract_status }}
@if(!$loop->last)
@endif @empty
Employee Contract not found.
@endforelse
{{-- ================================================= --}} {{-- FILTER --}} {{-- ================================================= --}}
Clear
{{-- ================================================= --}} {{-- LIST --}} {{-- ================================================= --}}
@forelse($teachingLoads as $key => $row) @empty @endforelse
No. Academic Year Semester Contract Workload Arrangement Teaching Load Status Action
{{ $key + 1 }} {{ $row->teaching_load_year }} Semester {{ $row->teaching_load_semester }} @if($row->arrangement_id) Administrative Position
{{ $row->admin_position_name ?? '-' }}
@else Employee Contract @endif
@if($row->arrangement_id)
{{ $row->adposition_type_name ?? '-' }}
@if($row->arrangement_status) Status : {{ $row->arrangement_status }} @endif @else - @endif
@php $status = $row->teaching_load_status ?? 'Draft'; @endphp @php $listRevision = $status === 'Pending' ? \App\Services\TeachingLoadRejectionNotice::current($row->teaching_load_id) : null; @endphp @if($listRevision) Rejected — Needs Revision @elseif($status == 'Approved') Approved @elseif($status == 'Rejected') Rejected @elseif( $status == 'Pending' || $status == 'Waiting' ) {{ $status }} @else Draft @endif {{-- ===================================================== --}} {{-- EDIT --}} {{-- แก้ได้เฉพาะ Draft / Rejected --}} {{-- ===================================================== --}} @if($row->workflow_can_edit ?? false) {{-- ============================================ --}} {{-- EDIT --}} {{-- Draft / Rejected / Returned to Faculty --}} {{-- ============================================ --}} @else {{-- ============================================ --}} {{-- VIEW --}} {{-- Waiting for Secretary / Approver / Approved --}} {{-- ============================================ --}} @endif
No Teaching Load found.
{{-- ========================================================= --}} {{-- CREATE MODAL --}} {{-- ========================================================= --}} @endsection