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

Profile: ({{ $course->title }})

Name {{ $course->title }}
Start Date {{ $course->start_date }}
End Date {{ $course->endingDate }}
Start Time {{ $course->time_start }}
End Time {{ $course->end_time }}

Teachers

@php $c = 0; @endphp @foreach ( $data['teachers'] as $row) @php $teacher = App\Models\Teacher::where('id', $row->teacher_id)->first(); @endphp @endforeach
# Teacher Name From Date Status
{{ ++$c }} {{ $teacher != null ? $teacher->name : '' }} {{ $row->from_date }} {{ $row->to_date }} {{ $row->status }}

Students Information

@php $c = 0 @endphp @foreach ( $data['students'] as $row) @php $student = App\Models\Student::where('id', $row->student_id)->first(); $invoice = App\Models\Invoice::where('student_id', $row->student_id)->where('section_id', $row->course_id)->first(); @endphp @endforeach
# ID Name Father Name Status Invoice
{{ ++$c }} {{ $row->student_id }} {{ $student != null ? $student->name : '' }} {{ $student != null ? $student->father_name : '' }} {{ $row->status }} @if ($invoice == null) Add Invoice @endif
@endsection @section('script') @endsection