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:
@@ -38,11 +38,22 @@ class DeviceController extends Controller
|
||||
->orderBy('name')
|
||||
->paginate(20);
|
||||
|
||||
$deviceStats = Device::owned($owner)
|
||||
->where('organization_id', $organization->id)
|
||||
->get();
|
||||
|
||||
$heroStats = [
|
||||
'total' => $deviceStats->count(),
|
||||
'online' => $deviceStats->where('status', 'online')->count(),
|
||||
'kiosks' => $deviceStats->where('type', 'kiosk')->count(),
|
||||
];
|
||||
|
||||
return view('qms.devices.index', [
|
||||
'devices' => $devices,
|
||||
'organization' => $organization,
|
||||
'deviceTypes' => config('qms.device_types'),
|
||||
'canManage' => $permissions->can($member, 'displays.manage'),
|
||||
'heroStats' => $heroStats,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user