@php $user = $each->user @endphp
@php $picture = $user && $user->thumb ? '/storage/users/'.$user->thumb : '/assets/img/default-user-picture.png' @endphp
| {{ $j }} |
{{-- --}}
{{-- id/edit") }}">--}}
{{-- --}}
{{-- --}}
{{-- | --}}
{{ $user->staff_number }} |
id}/edit?s=".rand(100, 999)) }}">{{ $user->first_name }}
|
id}/edit?s=".rand(100, 999)) }}">{{ $user->last_name }}
|
{{-- {{ $user->dob ? baseDateFormat($user->dob) : "-" }} | --}}
{{-- {{ $user->doj ? baseDateFormat($user->doj) : "-" }} | --}}
{{--Contracted Hours | --}}
{{ $user->position && count($user->position) ? $user->position[0]->name : "-" }} |
{{ $user->cost_center }} |
{{ $user->company }} |
{{ \App\Models\User::getStation($user) }} |
{{ getUserWorkType($user->work_type) }} |
{{ $officeDutyHours ? convertToHoursMinutes($officeDutyHours, true) : "-" }} |
@php $excessClass = actualTimeAccess($each->pTotalTime, $each->totalTime) @endphp
{{-- PLN | --}}
{{ $each->pTotalTime ? $each->pTotalTime : "-" }} |
{{-- {!! $each->pTotalSalary ? " ".$each->pTotalSalary : "-" !!} | --}}
{{-- @foreach($periodUnique as $item)--}}
{{-- {{ isset($each->pTotalByPeriodTime[$item]) ? $each->pTotalByPeriodTime[$item] : "-" }} | --}}
{{-- {!! isset($each->pTotalSalaryByPeriod[$month]) ? " ".$each->pTotalSalaryByPeriod[$month] : "-" !!} | --}}
{{-- @endforeach--}}
{{-- ACT | --}}
{{ $each->totalTime ? $each->totalTime : "-" }} |
@php $totalHours = 3600 * ($each->totalHours ? $each->totalHours : $each->pTotalHours) + ($officeDutyHours ? $officeDutyHours : 0) @endphp
{{ $totalHours ? convertToHoursMinutes($totalHours, true) : "-" }} |
{{-- {!! $each->totalSalary ? " ".$each->totalSalary : "-" !!} | --}}
{{-- @foreach($periodUnique as $item)--}}
{{-- {{ isset($each->totalByPeriodTime[$item]) ? $each->totalByPeriodTime[$item] : "-" }} | --}}
{{-- {!! isset($each->totalSalaryByPeriod[$month]) ? " ".$each->totalSalaryByPeriod[$month] : "-" !!} | --}}
{{-- @endforeach--}}