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:
@@ -29,7 +29,18 @@ class CounterController extends Controller
|
||||
->orderBy('name')
|
||||
->paginate(20);
|
||||
|
||||
return view('qms.counters.index', compact('counters', 'organization'));
|
||||
$counterStats = Counter::owned($owner)
|
||||
->where('organization_id', $organization->id)
|
||||
->when(true, fn ($q) => $this->scopeToBranch($request, $q))
|
||||
->get();
|
||||
|
||||
$heroStats = [
|
||||
'total' => $counterStats->count(),
|
||||
'available' => $counterStats->where('status', 'available')->count(),
|
||||
'busy' => $counterStats->where('status', 'busy')->count(),
|
||||
];
|
||||
|
||||
return view('qms.counters.index', compact('counters', 'organization', 'heroStats'));
|
||||
}
|
||||
|
||||
public function show(Request $request, Counter $counter): View
|
||||
|
||||
Reference in New Issue
Block a user