| {{ $staff->name }} |
{{ $staff->roles->first()->name ?? 'No Role' }} |
{{ $staff->email }} |
{{ $staff->phone_accounts }} |
{{ $staff->created_at->format('d/m/Y') }} |
@if(auth()->user()->isAdmin() || auth()->user()->can('staff.edit'))
status_label == 'active' ? 'checked' : '' }}
aria-checked="{{ $staff->status_label == 'active' ? 'true' : 'false' }}">
{{ $staff->status_label }}
@else
{{ ucfirst($staff->status_label) }}
@endif
|
@if(auth()->user()->isAdmin() || auth()->user()->can('staff.edit'))
@endif
@if(auth()->user()->isAdmin())
@endif
|
@empty
@endforelse