@extends('layouts.admin') @section('title', 'Staff & RBAC') @include('admin._shared_styles') @section('content')
Total Staff
{{ number_format($stats['total_staff'] ?? 0) }}
Active Staff
{{ number_format($stats['active_staff'] ?? 0) }}
Custom Roles
{{ number_format($stats['custom_roles'] ?? 0) }}
Tenants with Staff
{{ number_format($stats['tenants_with_staff'] ?? 0) }}
@forelse($tenants as $tenant) @empty @endforelse
Tenant Owner Total Staff Active Staff Actions
{{ $tenant->business_name ?? $tenant->name }} {{ $tenant->owner->name ?? 'N/A' }} {{ number_format($tenant->staff_count ?? 0) }} {{ number_format($tenant->active_staff_count ?? 0) }}
No tenants with staff found.
@include('partials.table-pagination', ['paginator' => $tenants, 'label' => 'tenants'])
@endsection