{{trans('home.report_results')}}
{{trans('home.date_from')}} {{$dateFrom}} {{trans('home.date_to')}} {{$dateTo}}
@if($centers != null)
@if(count($centers)>0)
| # |
{{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')}} |
@foreach ($centers as $key=>$center)
| {{$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} }} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($halls != null)
@if(count($halls)>0)
| # |
{{trans('home.name')}} |
{{trans('home.region')}} |
{{trans('home.building_name')}} |
{{trans('home.floor')}} |
{{trans('home.address')}} |
{{trans('home.capacity')}} |
@foreach ($halls as $key=>$hall)
| {{$key+1}} |
{{$hall->{'name_'.$lang} }} |
{{$hall->region->{'name_'.$lang} }} |
{{$hall->building_name}} |
{{$hall->floor}} |
{{$hall->{'address_'.$lang} }} |
{{$hall->capacity}} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($center_regions != null)
@if(count($center_regions)>0)
| # |
{{trans('home.name')}} |
{{trans('home.region')}} |
{{trans('home.status')}} |
@foreach ($center_regions as $key=>$center_region)
| {{$key+1}} |
{{$center_region->{'name_'.$lang} ?? '' }} |
{{$center_region->area->{'name_'.$lang} ?? '' }} |
{{$center_region->status}} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($instructors != null)
@if(count($instructors)>0)
| # |
{{trans('home.ssn')}} |
{{trans('home.name')}} |
{{trans('home.job_title')}} |
{{trans('home.phone')}} |
@foreach ($instructors as $key=>$instructor)
| {{$key+1}} |
{{$instructor->instructor_info->ssn}} |
{{$instructor->name()}} |
{{$instructor->instructor_info->job_title}} |
{{$instructor->instructor_info->mobile}} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($trainings != null)
@if(count($trainings)>0)
| # |
{{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')}} |
@foreach ($trainings as $key=>$training)
| {{$key+1}} |
{{$training->code}} |
{{$training->{'name_'.$lang} ?? '' }} |
@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
{{$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)}} |
@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
{!! $status !!} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($courses != null)
@if(count($courses)>0)
| # |
{{trans('home.code')}} |
{{trans('home.name')}} |
{{trans('home.status')}} |
@foreach ($courses as $key=>$course)
| {{$key+1}} |
{{$course->code}} |
{{$course->{"name_$lang"} }} |
{{$course->status}} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($students != null)
@if(count($students)>0)
| # |
{{trans('home.ssn')}} |
{{trans('home.name')}} |
{{trans('home.phone')}} |
{{trans('home.course')}} |
{{trans('home.region')}} |
@foreach ($students as $key=>$student)
| {{$key+1}} |
{{$student->student_info->ssn ?? ''}} |
{{$student->name()}} |
{{$student->student_info->mobile ?? ''}} |
@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
{{$training_row}} |
{{$student->student_info->address->region->{"name_$lang"} ?? '' }} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif
@if($students_regions != null)
@if(count($students_regions)>0)
| # |
{{trans('home.name')}} |
{{trans('home.region')}} |
{{trans('home.status')}} |
@foreach ($students_regions as $key=>$student_region)
| {{$key+1}} |
{{$student_region->{'name_'.$lang} ?? '' }} |
{{$student_region->area->{'name_'.$lang} ?? '' }} |
{{$student_region->status}} |
@endforeach
@else
{{trans('home.no_data_found')}}
@endif
@endif