@php $i = 1; @endphp
@if ($attendance_status === 0)
@forelse($comeOuts as $comeOut)
@if ($comeOut->employees === null)
@continue
@else
{{ $comeOut->id }} |
{{ $comeOut->employees->short_full_name }} |
employees->schedule->name ?? 'class="text-danger"' !!}>{{ $comeOut->employees->schedule->name ?? 'Не связано график работы' }} |
{{ $comeOut->employees->companies->name }} |
{{ $comeOut->employees->branches->name }} |
{{ $comeOut->employees->departments->name }} |
{{ $comeOut->employees->positions->name }} |
@if(\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 1)
Вход |
@else
Выход |
@endif
@isset($comeOut->employees->schedule->range_from)
@if (\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 1 && $comeOut->employees->schedule->range_from >= date("H:i", strtotime($comeOut->action_time)))
{{ $comeOut->action_time }} (ВО ВРЕМЯ) |
@elseif(\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 1 && $comeOut->employees->schedule->range_from < date("H:i", strtotime($comeOut->action_time)))
{{ $comeOut->action_time }} (ОПОЗДАНИЕ) |
@elseif(\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 2 && $comeOut->employees->schedule->range_to > date("H:i", strtotime($comeOut->action_time)))
{{ $comeOut->action_time }} (Заранее) |
@elseif(\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 2 && $comeOut->employees->schedule->range_to <= date("H:i", strtotime($comeOut->action_time)))
{{ $comeOut->action_time }} (ВО ВРЕМЯ) |
@endif
@endisset
@endif
@empty
No Data. |
@endforelse
@endif
@if ($attendance_status === 1)
@forelse($comeOuts as $comeOut)
@isset($comeOut->employees->schedule->range_from)
@if (\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 1 && $comeOut->employees->schedule->range_from < date("H:i", strtotime($comeOut->action_time)))
@if ($comeOut->employees === null)
@continue
@else
{{ $comeOut->id }} |
{{ $comeOut->employees->short_full_name }} |
employees->schedule->name ?? 'class="text-danger"' !!}>{{ $comeOut->employees->schedule->name ?? 'Не связано график работы' }} |
{{ $comeOut->employees->companies->name }} |
{{ $comeOut->employees->branches->name }} |
{{ $comeOut->employees->departments->name }} |
{{ $comeOut->employees->positions->name }} |
Вход |
{{ $comeOut->action_time }}
(ОПОЗДАНИЕ)
|
@endif
@endif
@endisset
@empty
No Data. |
@endforelse
@endif
@if ($attendance_status === 2)
@forelse($comeOuts as $comeOut)
@isset($comeOut->employees->schedule->range_from)
@if (\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 1 && $comeOut->employees->schedule->range_from >= date("H:i", strtotime($comeOut->action_time)))
@if ($comeOut->employees === null)
@continue
@else
{{ $comeOut->id }} |
{{ $comeOut->employees->short_full_name }} |
employees->schedule->name ?? 'class="text-danger"' !!}>{{ $comeOut->employees->schedule->name ?? 'Не связано график работы' }} |
{{ $comeOut->employees->companies->name }} |
{{ $comeOut->employees->branches->name }} |
{{ $comeOut->employees->departments->name }} |
{{ $comeOut->employees->positions->name }} |
Вход |
{{ $comeOut->action_time }}
(ВО ВРЕМЯ)
|
@endif
@endif
@endisset
@empty
No Data. |
@endforelse
@endif
@if($attendance_status === 3)
@foreach($comeOuts as $comeOut)
@isset($comeOut->employees->schedule->range_to)
@if(\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 2 && $comeOut->employees->schedule->range_to <= date("H:i", strtotime($comeOut->action_time)))
@if ($comeOut->employees === null)
@continue
@else
{{ $comeOut->id }} |
{{ $comeOut->employees->short_full_name }} |
employees->schedule->name ?? 'class="text-danger"' !!}>{{ $comeOut->employees->schedule->name ?? 'Не связано график работы' }} |
{{ $comeOut->employees->companies->name }} |
{{ $comeOut->employees->branches->name }} |
{{ $comeOut->employees->departments->name }} |
{{ $comeOut->employees->positions->name }} |
Выход |
{{ $comeOut->action_time }}
(Во Время)
|
@endif
@endif
@endisset
@endforeach
@endif
@if($attendance_status === 4)
@foreach($comeOuts as $comeOut)
@isset($comeOut->employees->schedule->range_to)
@if(\Illuminate\Support\Facades\DB::table("door_device")->where("id", $comeOut->doors_has_device_id)->get("is_come")->pluck("is_come")[0] == 2 && $comeOut->employees->schedule->range_to > date("H:i", strtotime($comeOut->action_time)))
@if ($comeOut->employees === null)
@continue
@else
{{ $comeOut->id }} |
{{ $comeOut->employees->short_full_name }} |
employees->schedule->name ?? 'class="text-danger"' !!}>{{ $comeOut->employees->schedule->name ?? 'Не связано график работы' }} |
{{ $comeOut->employees->companies->name }} |
{{ $comeOut->employees->branches->name }} |
{{ $comeOut->employees->departments->name }} |
{{ $comeOut->employees->positions->name }} |
Выход |
{{ $comeOut->action_time }}
(Заранее)
|
@endif
@endif
@endisset
@endforeach
@endif