All Staff
@foreach ($staff as $key => $item) @endforeach
# Name Email Contact Role Permissions Registration date Action
{{ $item->key + 1 }} {{ $item->name }} {{ $item->email }} {{ $item->phone_number }} @foreach ($item->roles as $role) {{ ucwords(str_replace('_', ' ', $role->name)) }} @endforeach @foreach ($item->permissions as $permission) {{ $permission->name . ',' }} @endforeach {{ date('jS M Y', strtotime($item->created_at)) }}
# Name Email Contact Roles Permissions Registration date Action