@forelse ($returnWorkers as $item) @php $avatar = Util::linkFile('pas-photo', $item->user->pas_photo); @endphp {{ $loop->index + 1 + $returnWorkers->perPage() * ($returnWorkers->currentPage() - 1) }}
{{ $item->user->name }}
{{ $item->user->username }} {{ $item->user->position }} {{ date('d F Y H:i', strtotime($item->historyDuty->start_duty)) }} {{ date('d F Y H:i', strtotime($item->historyDuty->end_duty)) }} {{ date('d F Y H:i', strtotime($item->historyDuty->actual_date)) }} {{ $item->reason->reason ?? $item->other_reason }} @include('components.util.status-return-worker', [ 'name' => 'return_worker_status' . $item->id, 'user_id' => $item->user->id, 'class' => 'update-status-gatein', 'route' => route('return-worker.update-status'), 'returned_worker_id' => $item->id, 'style' => 'width:170px', 'status' => $item->status, ]) @empty @include('components.empty.empty-state') @endforelse