Drop heroes from analytics pages and remove bordered show cards.
Deploy Ladill Queue / deploy (push) Successful in 43s
Deploy Ladill Queue / deploy (push) Successful in 43s
Analytics, Reports, Feedback, and Branches use simple headers again; report and related show views use shadow panels instead of card borders. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -26,13 +26,7 @@ class BranchController extends Controller
|
||||
->orderBy('name')
|
||||
->get();
|
||||
|
||||
$heroStats = [
|
||||
'total' => $branches->count(),
|
||||
'active' => $branches->where('is_active', true)->count(),
|
||||
'departments' => $branches->sum('departments_count'),
|
||||
];
|
||||
|
||||
return view('qms.admin.branches.index', compact('branches', 'organization', 'heroStats'));
|
||||
return view('qms.admin.branches.index', compact('branches', 'organization'));
|
||||
}
|
||||
|
||||
public function create(Request $request): View
|
||||
|
||||
@@ -32,21 +32,10 @@ class FeedbackAdminController extends Controller
|
||||
->when($branchScope, fn ($q) => $q->whereHas('ticket', fn ($t) => $t->where('branch_id', $branchScope)))
|
||||
->avg('rating');
|
||||
|
||||
$feedbackQuery = CustomerFeedback::owned($owner)
|
||||
->where('organization_id', $organization->id)
|
||||
->when($branchScope, fn ($q) => $q->whereHas('ticket', fn ($t) => $t->where('branch_id', $branchScope)));
|
||||
|
||||
$heroStats = [
|
||||
'total' => (clone $feedbackQuery)->count(),
|
||||
'avg_rating' => round((float) $avgRating, 1),
|
||||
'this_month' => (clone $feedbackQuery)->where('created_at', '>=', now()->startOfMonth())->count(),
|
||||
];
|
||||
|
||||
return view('qms.feedback.index', [
|
||||
'feedback' => $feedback,
|
||||
'organization' => $organization,
|
||||
'avgRating' => round((float) $avgRating, 1),
|
||||
'heroStats' => $heroStats,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,6 @@ class ReportController extends Controller
|
||||
'organization' => $organization,
|
||||
'branches' => $branches,
|
||||
'reports' => config('qms.report_types'),
|
||||
'heroStats' => [
|
||||
'reports' => count(config('qms.report_types')),
|
||||
'branches' => $branches->count(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user