api code global jain
This commit is contained in:
24
app/Repositories/Backend/Dashboard/DashboardService.php
Normal file
24
app/Repositories/Backend/Dashboard/DashboardService.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Backend\Dashboard;
|
||||
|
||||
use App\Models\Sant;
|
||||
use App\Models\User;
|
||||
use App\Models\Sampraday;
|
||||
use App\Services\BaseService;
|
||||
|
||||
class DashboardService extends BaseService
|
||||
{
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getDashboardStatistics()
|
||||
{
|
||||
return [
|
||||
'shravak' => User::where('verification_confirmed','2')->where('id', '<>','1')->count(),
|
||||
'sant' => Sant::count(),
|
||||
'sampraday' => Sampraday::count(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user