@extends('layouts.app') @section('title', 'Staff Management') @section('page-title', 'Staff Management') @section('content') {{-- Header --}}

Manage all admin and staff accounts

Add Staff
{{-- Filters --}}
@if(request()->hasAny(['search','status'])) Clear @endif
{{-- Table --}}
@if($staff->isEmpty())
No staff accounts found.
@else
@include('partials._sort_th', ['column' => 'name', 'label' => 'Name / Email', 'thClass' => 'ps-4']) @include('partials._sort_th', ['column' => 'role', 'label' => 'Role']) @include('partials._sort_th', ['column' => 'created_at', 'label' => 'Created']) @foreach($staff as $member) @endforeach
MobileStatusActions
{{ strtoupper(substr($member->name, 0, 1)) }}
{{ $member->name }} @if($member->id === auth()->id()) You @endif
{{ $member->email }}
{{ $member->mobile ?? '—' }} @if($member->isAdmin()) Admin @else Staff @endif @if($member->is_active) Active @else Inactive @endif {{ $member->created_at->format('d M Y') }}
@if($member->id !== auth()->id())
@csrf @method('PATCH')
@endif
@if($staff->hasPages())
{{ $staff->links() }}
@endif @endif
@endsection