@extends('../layout/' . $layout) @section('subhead') Atarud MIS - Timesheet @endsection @section('subcontent')

Timesheet

Date of Update

{{ date('D M-d-y') }}
@if(isset($teachers) )

Timesheet

@foreach ($teachers as $row) @php $subjectTeachs = App\Models\SubjectTeach::where('teacher_id', $row->id)->pluck('course_id')->toArray(); // $classroom = $data != null ? $data->name : ''; $courses = App\Models\Course::whereIn('id', $subjectTeachs)->where('status', 'active')->get(); // $totalMorning += $totalStudents; @endphp @endforeach
No Name Fathername Courses
{{ ++$loop->index}} {{ $row->name }} {{ $row->fname }} {{-- @if(count($courses) > 0) --}} @foreach ($courses as $data ) [ {{ $data->title }} ( {{ $data->time_start }} - {{ $data->time_end }}) ] - @endforeach {{-- @endif --}}
@endif {{--
Total of Student Morning Section {{ $totalMorning }}
Total of Student Afternoon Section {{ $totalAfternoon }}
--}}
@endsection @section('script') @endsection