|
{{ $document->title }}
{{ $document->uploadedBy?->name ?? '—' }}
|
@if ($document->user)
{{ $document->user->name }}
{{ $document->user->department?->name ?? 'Unassigned' }}
@else
—
@endif
|
|
{{ $document->created_at?->format('d M Y') }} |
@if ($document->expires_at)
{{ $document->expires_at->format('d M Y') }}
@if ($document->is_expired)
Expired
@elseif ($document->expires_at->lte(today()->addDays(30)))
Expiring soon
@endif
@else
No expiry
@endif
|
@can('hrm.staff.view')
View
Download
@endcan
|
@endforeach