Files
aroginhealthcare/Modules/Admin/app/Http/Controllers/AdminController.php
2025-08-17 16:23:14 +05:45

30 lines
812 B
PHP

<?php
namespace Modules\Admin\app\Http\Controllers;
use App\Http\Controllers\Controller;
use Modules\Blog\app\Models\Blog;
use Modules\ContactUs\app\Models\ContactUs;
use Modules\Post\app\Models\Post;
use Modules\Service\app\Models\Service;
use Modules\Subscription\app\Models\Subscription;
use Modules\TeamMember\app\Models\TeamMember;
class AdminController extends Controller
{
//-- Dashboard
public function dashboard()
{
$data = [
'totalTeam' => TeamMember::count(),
'totalBlog' => Blog::count(),
'totalPost' => Post::count(),
'totalService' => Service::count(),
'totalSubscriber' => Subscription::count(),
'totalContact' => ContactUs::count(),
];
return view('admin::dashboard', $data);
}
}