Added MNO docs to Paperless, fixed new clients info on dashboard

This commit is contained in:
Kwesi Banson
2024-07-04 11:32:19 +00:00
parent 132f151728
commit 101012c684
20 changed files with 128 additions and 63 deletions

View File

@@ -16,7 +16,9 @@ class DashboardController extends Controller
$voice_clients = Models\Client::where('services', 'LIKE', '%ivr%')->count();
$expiring_contracts = Models\Client::where('contract_auto_renew', '<>', 'YES')->where('contract_validity', '<>', null)->orwhere('contract_validity', '<>', '')->orderBy('contract_validity', 'ASC')->take(5)->get();
$user_activities = Models\UserActivity::where('user_id', '>', '1')->with('userInfo')->orderBy('created_at', 'DESC')->take(5)->get();
$recent_clients = Models\Client::with('auth_user_info')->orderBy('created_at', 'DESC')->take(5)->get();
$recent_clients = Models\Client::with('auth_user_info')->orderBy('id', 'DESC')->take(5)->get();
// $recent_clients = Models\Client::orderBy('id', 'DESC')->take(5)->get();
// dd($recent_clients);
$data = [
'page_title' => 'Dashboard',
'sms' => $sms_clients,