Add hero sections to Queue index pages and soften analytics cards.
Deploy Ladill Queue / deploy (push) Successful in 36s
Deploy Ladill Queue / deploy (push) Successful in 36s
Introduce shared x-qms.page-hero with summary stats across queues, tickets, counters, admin pages, and insights; remove bordered cards on Analytics, Reports, Feedback, and Branches list views. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -27,10 +27,19 @@ class MemberController extends Controller
|
||||
->orderBy('created_at')
|
||||
->get();
|
||||
|
||||
$operatorRoles = ['queue_operator', 'counter_staff', 'receptionist'];
|
||||
|
||||
$heroStats = [
|
||||
'total' => $members->count(),
|
||||
'operators' => $members->whereIn('role', $operatorRoles)->count(),
|
||||
'branches' => $members->whereNotNull('branch_id')->pluck('branch_id')->unique()->count(),
|
||||
];
|
||||
|
||||
return view('qms.admin.members.index', [
|
||||
'members' => $members,
|
||||
'organization' => $organization,
|
||||
'roles' => config('qms.roles'),
|
||||
'heroStats' => $heroStats,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user