added quote to dashboard view

This commit is contained in:
Kwesi Banson Jnr
2026-08-21 07:59:06 +00:00
parent f53cc472bc
commit 8c0144c616
2 changed files with 10 additions and 1 deletions

View File

@@ -117,9 +117,12 @@ class DashboardController extends Controller
}
})->orderBy('dob', 'asc')->take(5)->get();
$main_quote = DailyQuote::where('status', 'active')->first();
// dd($main_quote);
return view('dashboard.index', compact(
'totalClients', 'activeClients', 'activeNetworks', 'activeShortCodes', 'totalSenderIds', 'clientActiveRate',
'totalStaff', 'pendingLeaves', 'totalDocuments', 'activeLeavesThisMonth',
'totalStaff', 'pendingLeaves', 'totalDocuments', 'activeLeavesThisMonth', 'main_quote',
'recentPendingLeaves', 'recentDocuments', 'upcomingBirthdays'
));
}