progress indicators, bug fixes, after a while
This commit is contained in:
@@ -14,15 +14,18 @@ class DashboardController extends Controller
|
||||
$ussd_clients = Models\Client::where('services', 'LIKE', '%ussd%')->orwhere('services', 'LIKE', '%A2P%')->count();
|
||||
$sms_clients = Models\Client::where('services', 'LIKE', '%sms%')->count();
|
||||
$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();
|
||||
//dd($expiring_contracts->isEmpty() == false);
|
||||
$data = [
|
||||
'page_title' => 'Dashboard',
|
||||
'sms' => $sms_clients,
|
||||
'ussd' => $ussd_clients,
|
||||
'voice' => $voice_clients,
|
||||
'total' => $total_clients
|
||||
'total' => $total_clients,
|
||||
'expiring_contracts' => $expiring_contracts
|
||||
];
|
||||
|
||||
// dd($data);
|
||||
//dd($data);
|
||||
return view('dashboard.index_two', $data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user