{{trans('home.report_results')}}

{{trans('home.date_from')}}   {{$dateFrom}}   {{trans('home.date_to')}}   {{$dateTo}}

@if($courses != null) @if(count($courses)>0) @foreach ($courses as $key=>$course) @endforeach
# {{trans('home.code')}} {{trans('home.name')}} {{trans('home.status')}}
{{$key+1}} {{$course->code}} {{$course->{"name_$lang"} }} {{$course->status}}
@else

{{trans('home.no_data_found')}}

@endif @endif @if($instructors != null) @if(count($instructors)>0) @foreach ($instructors as $key=>$instructor) @endforeach
# {{trans('home.ssn')}} {{trans('home.name')}} {{trans('home.job_title')}} {{trans('home.phone')}}
{{$key+1}} {{$instructor->instructor_info->ssn}} {{$instructor->name()}} {{$instructor->instructor_info->job_title}} {{$instructor->instructor_info->mobile}}
@else

{{trans('home.no_data_found')}}

@endif @endif @if($trainings != null) @if(count($trainings)>0) @foreach ($trainings as $key=>$training) @php $ins = App\Models\TrainingCourse::where('training_id',$training->id)->first(); if($ins) { $user = App\Models\User::find($ins->instructor_id); if($user){ $ins_name = $user->name(); } else { $ins_name = '...'; } } else { $ins_name = '...'; } @endphp @php if($training->training_status == '-1') { $status = '

'. trans('home.no_date_found') .'

'; } else if($training->training_status == '0') { $status = '

'. trans('home.not_started') .'

'; } else if($training->training_status == '1') { $status = '

'. trans('home.started') .'

'; } else if($training->training_status == '2') { $status = '

'. trans('home.finished') .'

'; } @endphp @endforeach
# {{trans('home.code')}} {{trans('home.name')}} {{trans('home.instructor')}} {{trans('home.region')}} {{trans('home.hall')}} {{trans('home.date_from')}} {{trans('home.date_to')}} {{trans('home.time_from')}} {{trans('home.time_to')}} {{trans('home.n_students')}} {{trans('home.training_status')}}
{{$key+1}} {{$training->code}} {{$training->{'name_'.$lang} ?? '' }}{{$ins_name}} {{$training->region->{"name_$lang"} ?? '' }} {{$training->trainings_schaduals->hall->{'name_'.$lang} ?? ''}} {{ isset($training->trainings_schaduals->start_date) ? \Carbon\Carbon::parse($training->trainings_schaduals->start_date)->format("Y-m-d") : ''}} {{ isset($training->trainings_schaduals->end_date) ? \Carbon\Carbon::parse($training->trainings_schaduals->end_date)->format("Y-m-d") : ''}} {{$training->time_from}} {{$training->time_to}} {{count($training->students)}}{!! $status !!}
@else

{{trans('home.no_data_found')}}

@endif @endif @if($centers != null) @if(count($centers)>0) @foreach ($centers as $key=>$center) @endforeach
# {{trans('home.name')}} {{trans('home.n_instructors')}} {{trans('home.n_students')}} {{trans('home.n_trainings')}} {{trans('home.n_courses')}} {{trans('home.partner_start_date')}} {{trans('home.region')}}
{{$center->id}} {{$center->{'name_'.$lang} }} {{$center->instructors_count() }} {{$center->students_count() }} {{$center->trainings_count() }} {{$center->courses_count() }} {{$center->partner_start_date }} {{$center->region->{'name_'.$lang} }}
@else

{{trans('home.no_data_found')}}

@endif @endif @if($students != null) @if(count($students)>0) @foreach ($students as $key=>$student) @php $t = App\Models\Student::where('user_id',$student->id)->first(); if($t){ $t = App\Models\Training::find($t->training_id); $training_row = $t->{'name_'.$lang}; } else { $training_row = '...'; } @endphp @endforeach
# {{trans('home.ssn')}} {{trans('home.name')}} {{trans('home.phone')}} {{trans('home.course')}} {{trans('home.region')}}
{{$key+1}} {{$student->student_info->ssn}} {{$student->name()}} {{$student->student_info->mobile}}{{$training_row}} {{$student->student_info->address->region->{"name_$lang"} ?? '' }}
@else

{{trans('home.no_data_found')}}

@endif @endif