@extends('layouts.master') @section('title', 'Workload Arrangement Table for Regular Faculty Members') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') @include('layouts.title')
@yield('title')


@foreach ($contracts as $item) @endforeach @foreach ($WArrangements as $index => $w) {{-- แสดงเสมอ --}} {{-- dynamic contract columns --}} @foreach ($contracts as $item) @php $value = $regulars ->where('regular_name', $w->WArrangement_id) ->where('regular_contract_id', $item->contract_id) ->first(); @endphp @endforeach @endforeach
No. Workload Arrangement Unit{{ $item->contract_type }}
{{ $index + 1 }}{{ $w->WArrangement_title }} {{ $w->unit_name ?? '-' }} {{ $value->regular_value ?? '-' }}
@include('layouts.footer') @endsection