@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) }}
| Tenant |
Owner |
Total Staff |
Active Staff |
Actions |
@forelse($tenants as $tenant)
| {{ $tenant->business_name ?? $tenant->name }} |
{{ $tenant->owner->name ?? 'N/A' }} |
{{ number_format($tenant->staff_count ?? 0) }} |
{{ number_format($tenant->active_staff_count ?? 0) }} |
|
@empty
|
No tenants with staff found.
|
@endforelse
@include('partials.table-pagination', ['paginator' => $tenants, 'label' => 'tenants'])
@endsection