@if(isset($teacher))

{{ $teacher->name }} F/N {{$teacher->fname}} - Details

Personal Information

@if($teacher->photo != null) Teacher Photo @endif
Name {{ $teacher->name }}
Father Name {{ $teacher->fname }}
Gender {{ $teacher->sex }}
Phone {{ $teacher->phone }}
Email {{ $teacher->email }}
Address {{ $teacher->address }}
Arrival Time {{ $teacher->arrival_time }}
Departure Time {{ $teacher->depature_time }}

Courses Taught

@php $c = 0; @endphp @foreach ( $data['teaching_history'] as $row) @php $course = App\Models\Course::where('id', $row->course_id)->first(); $program = App\Models\Program::where('id', $course->program_id)->first(); $semester = App\Models\Semester::where('id', $course->semester_id)->first(); $section = App\Models\Section::where('id', $course->section_id)->first(); @endphp @endforeach
# Program Semester Section Course From To
{{ ++$c }} {{ $program->title }} {{ $semester->name }} {{ $section->name }} {{ $course->title }} {{ $row->from_date }} {{ $row->to_date }}

Payments Information

@foreach ( $data['payments'] as $row) @php $c = 0; $acc = App\Models\ChartofAccount::where('id', $row->account_id)->first(); @endphp @endforeach
# Account Title Amount Paid Date
{{ ++$loop->index }} {{ $acc->name }} {{ $row->title }} {{ $row->amount }} {{ $row->built_timestamp }}

Contracts Information

@php $c = 0 @endphp @foreach ( $data['contracts'] as $row) @endforeach
# Contract From Contract To Salary Type Salary
{{ ++$c }} {{ $row->from_date }} {{ $row->from_date }} {{ $row->salary_type }} {{ $row->salary }}
@endif