@extends('admin.layouts.app') @section('title','Staff') @section('page-title','Staff & RBAC') @section('page-subtitle','Super Admin, KYC, Finance, Dispute, Security officers') @section('content')
@include('admin.partials.icon', ['name' => 'plus']) Add
@forelse($staff as $member) @php $statusBadge = match($member->status) { 'active' => 'badge-success', 'pending' => 'badge-muted', default => 'badge-danger', }; $isSelf = $member->is(auth()->user()); @endphp @empty@endforelse
NameEmailMobileRolesStatusLast loginActions
{{ $member->name }}@if($isSelf) You@endif {{ $member->email }} {{ $member->phone ?: '—' }} {{ $member->roles->pluck('name')->join(', ') ?: '—' }} {{ ucfirst($member->status) }} {{ $member->last_login_at?->diffForHumans() ?: 'Never' }}
No staff found.
{{ $staff->links('admin.partials.pagination') }}
@push('scripts') @endpush @endsection