git add .

git commit "Add admin management search sort and permission structure preparation"
This commit is contained in:
2026-08-18 12:56:32 +03:30
parent d7bd95f71a
commit 78a3b1d63d
24 changed files with 1167 additions and 75 deletions
@@ -3,8 +3,25 @@
namespace App\Http\Controllers\Admin\Auth;
use App\Http\Controllers\Controller;
use App\Models\Admin;
use App\Models\Flight;
use App\Models\Tour;
use App\Models\User;
class DashboardController extends Controller
{
//
public function index()
{
$adminsCount = Admin::count();
$usersCount = User::count();
$toursCount = Tour::count();
$flightsCount = Flight::count();
return view('admin.dashboard',compact('adminsCount',
'usersCount','toursCount','flightsCount'
));
}
}