Staff Management
Manage staff accounts, roles, contact details, and employment information.
Add Staff Member
@if (session('msg'))
{{ session('msg') }}
@endif
| # |
{{ __('admin.name') }} |
{{ __('admin.email') }} |
Phone |
Staff Type |
Status |
{{ __('admin.roles') }} |
{{ __('admin.created_2') }} |
{{ __('admin.actions') }} |
@forelse($users as $u)
| {{ $u->id }} |
{{ $u->name }} |
{{ $u->email }} |
{{ $u->phone ?: '—' }} |
{{ $u->employee_type ? ucfirst($u->employee_type) : '—' }} |
{{ $u->employment_status ? ucfirst(str_replace('_', ' ', $u->employment_status)) : '—' }}
|
@php $rs = method_exists($u,'roles') ? $u->roles : collect(); @endphp
@if($rs->count())
@foreach($rs as $r)
{{ $r->name }}
@endforeach
@else
—
@endif
|
{{ optional($u->created_at)->format('Y-m-d') ?? '—' }} |
|
@empty
| {{ __('admin.no_users_found') }} |
@endforelse
{{ $users->withQueryString()->links('pagination::bootstrap-4') }}
@endsection