{{ __('Employee') }} {{ __('Device') }} {{ __('Type') }} {{ __('State') }} {{ __('Requested At') }} {{ __('Actions') }} @foreach ($data as $key => $model) {{ $model->user?->full_name }} {{ $model->device_name ?? '-' }} {{ $model->type }} {{ $model->state?->label() }} {{ $model->created_at?->toDateTimeString() }} @if ($model->isPending()) {{-- Rejecting needs a reason from reject_reasons, chosen on the details page. --}} {{ __('Reject') }} @else {{ __('Show') }} @endif @endforeach