added quote to dashboard view
This commit is contained in:
@@ -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'
|
||||
));
|
||||
}
|
||||
|
||||
@@ -73,6 +73,12 @@
|
||||
<strong>Brief Summary:</strong> We are currently servicing <strong>{{ $activeClients }} active clients</strong> sending traffic through <strong>{{ $activeShortCodes }} USSD short codes</strong> and <strong>{{ $totalSenderIds }} SMS sender IDs</strong> across <strong>{{ $activeNetworks }} network operators</strong>.
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-secondary border-0 shadow-sm d-flex align-items-center mb-5 bg-white text-dark py-3">
|
||||
<i class="bi bi-chat-left-quote text-success fs-4 me-3"></i>
|
||||
<div>
|
||||
<strong>Daily Quote :</strong> <strong>{{ $main_quote->quote }}</strong> by {{ $main_quote->author }} .
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- ========================================== -->
|
||||
|
||||
Reference in New Issue
Block a user