@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 @if($status == 'Approved') Approved @elseif($status == 'Rejected') Rejected @elseif( $status == 'Pending' || $status == 'Waiting' ) {{ $status }} @else Draft @endif {{-- ===================================================== --}} {{-- EDIT --}} {{-- แก้ได้เฉพาะ Draft / Rejected --}} {{-- ===================================================== --}} @if( in_array( $row->teaching_load_status, [ 'Draft', 'Rejected' ] ) ) @endif {{-- ===================================================== --}} {{-- VIEW --}} {{-- แสดงตลอดทุก Status --}} {{-- ===================================================== --}}
No Teaching Load found.
{{-- ========================================================= --}} {{-- CREATE MODAL --}} {{-- ========================================================= --}} @endsection