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


@foreach ($teaching_types as $item) @endforeach @foreach ($WATeachings as $index => $w) {{-- แสดงเสมอ --}} {{-- dynamic teaching_type columns --}} @foreach ($teaching_types as $item) @php $value = $teachings ->where('teaching_name', $w->WATeaching_id) ->where('teaching_type_id', $item->teaching_type_id) ->first(); @endphp @endforeach @endforeach
No. Workload Arrangement Unit{{ $item->teaching_type_name }}
{{ $index + 1 }}{{ $w->WATeaching_title }} {{ $w->unit_name ?? '-' }} {{ $value->teaching_value ?? '-' }}
@include('layouts.footer') @endsection