{{ __('Employee') }} {{ __('Device Name') }} {{ __('Platform') }} {{ __('Installation ID') }} {{ __('Credential Type') }} {{ __('Requested At') }} {{ __('Expires At') }} {{ __('Actions') }} @forelse ($data as $key => $device)
{{ $device->user?->full_name }} @if($device->user?->employee)
{{ $device->user->employee->job_title ?? '' }} @endif
{{ $device->device_name ?? '-' }} @if($device->imei)
IMEI: {{ $device->imei }} @endif {{ $device->getPlatformLabel() }} {{ Str::limit($device->installation_id, 20) }} @if($device->credential_type) {{ str_replace('_', ' ', ucwords($device->credential_type, '_')) }} @else - @endif {{ $device->created_at?->diffForHumans() }}
{{ $device->created_at?->format('Y-m-d H:i') }} @if($device->isExpired()) {{ __('Expired') }}
{{ $device->expires_at?->format('Y-m-d H:i') }} @else {{ $device->expires_at?->diffForHumans() }}
{{ $device->expires_at?->format('Y-m-d H:i') }} @endif
@if(!$device->isExpired()) @else {{ __('Expired') }} @endif
@empty

{{ __('No pending device registrations') }}

@endforelse