@extends('backend.layouts.app') @section('title', \App\Http\Helpers\MenuHelper::getPageTitle()) @section('content')

All Staff

@can('content-directory-staff.create') Create New @endcan
Reset
@if(!$departmentFilter)
Use the Department filter above to view staff under a specific department, then drag & drop to reorder.
@endif
@forelse($staff as $row) @empty @endforelse
# Photo Name Department Position Email Phone Sort Status Actions
@if($departmentFilter) @if(count($staff) > 1) @else @endif @else @endif {{ ($staff->currentPage() - 1) * $staff->perPage() + $loop->iteration }} @if($row->directory_staff_photo) {{ $row->directory_staff_name }} @else
{{ strtoupper(substr($row->directory_staff_name ?? '?', 0, 1)) }}
@endif
{{ $row->directory_staff_name ?? '-' }} {{ $row->department?->directory_department_name ?? '-' }} {{ $row->directory_staff_position ?? '-' }} {{ $row->directory_staff_email ?? '-' }} {{ $row->directory_staff_phone ?? '-' }} {{ $row->directory_staff_sort ?? '-' }} @if((int) ($row->directory_staff_status ?? 0) === 1) Active @else Inactive @endif
@can('content-directory-staff.update') @endcan @can('content-directory-staff.delete')
@csrf @method('DELETE')
@endcan

No staff found

Click "Create New" to add your first entry.

{{ $staff->appends(request()->query())->links('vendor.pagination.custom') }}
@endsection @push('scripts') @endpush