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,7 +38,17 @@ class AppointmentController extends Controller
|
||||
->orderBy('scheduled_at')
|
||||
->paginate(30);
|
||||
|
||||
return view('qms.appointments.index', compact('appointments', 'organization'));
|
||||
$appointmentQuery = QueueAppointment::owned($owner)
|
||||
->where('organization_id', $organization->id)
|
||||
->when($branchScope, fn ($q) => $q->where('branch_id', $branchScope));
|
||||
|
||||
$heroStats = [
|
||||
'today' => (clone $appointmentQuery)->whereDate('scheduled_at', today())->count(),
|
||||
'scheduled' => (clone $appointmentQuery)->where('status', 'scheduled')->count(),
|
||||
'checked_in' => (clone $appointmentQuery)->where('status', 'checked_in')->count(),
|
||||
];
|
||||
|
||||
return view('qms.appointments.index', compact('appointments', 'organization', 'heroStats'));
|
||||
}
|
||||
|
||||
public function create(Request $request): View
|
||||
|
||||
Reference in New Issue
Block a user