Phase 1 UI system

This commit is contained in:
Codex
2026-07-10 12:56:04 -05:00
parent 2ee16a6469
commit b45a9eccd6
30 changed files with 324 additions and 292 deletions
+14 -1
View File
@@ -17,6 +17,11 @@ use App\Http\Controllers\ReviewController;
use App\Http\Controllers\SocialPostController;
use App\Http\Controllers\WorkOrderMessageController;
use App\Http\Controllers\WorkOrderController;
use App\Models\BuyerProfile;
use App\Models\Dispute;
use App\Models\JobPost;
use App\Models\ProviderProfile;
use App\Models\WorkOrder;
use Illuminate\Support\Facades\Route;
$basePath = trim((string) config('app.base_path', ''), '/');
@@ -31,7 +36,15 @@ Route::get('/terms', function () {
})->name('terms');
Route::get('/dashboard', function () {
return view('dashboard');
return view('dashboard', [
'counts' => [
'providers' => ProviderProfile::count(),
'buyers' => BuyerProfile::count(),
'jobs' => JobPost::count(),
'workOrders' => WorkOrder::count(),
'disputes' => Dispute::count(),
],
]);
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {