Initial commit
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
ssww23
2026-03-10 00:55:37 +03:00
parent fc0f28d830
commit 93a655235a
155 changed files with 24768 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Category;
use App\Models\Order;
use App\Models\Product;
class AdminDashboardController extends Controller
{
public function index()
{
return view('admin.dashboard', [
'stats' => [
'categories' => Category::count(),
'products' => Product::count(),
'orders' => Order::count(),
'revenue' => (float) Order::sum('total'),
],
'recentOrders' => Order::query()->latest('id')->take(8)->get(),
]);
}
}