diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index fb7fef8..54047be 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -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' )); } diff --git a/resources/views/dashboard/index.blade.php b/resources/views/dashboard/index.blade.php index c2ef073..a76598a 100644 --- a/resources/views/dashboard/index.blade.php +++ b/resources/views/dashboard/index.blade.php @@ -73,6 +73,12 @@ Brief Summary: We are currently servicing {{ $activeClients }} active clients sending traffic through {{ $activeShortCodes }} USSD short codes and {{ $totalSenderIds }} SMS sender IDs across {{ $activeNetworks }} network operators. +