first commit

This commit is contained in:
2026-01-11 17:11:43 +00:00
commit 55bf184d53
157 changed files with 20499 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Controllers;
use App\Models\Contract;
use App\Models\Building;
use App\Models\Payment;
use Inertia\Inertia;
class DashboardController extends Controller
{
public function index()
{
$stats = [
'total_contracts' => Contract::count(),
'active_contracts' => Contract::where('status', 'active')->count(),
'total_buildings' => Building::count(),
'pending_payments' => Payment::where('status', 'pending')->count(),
];
return Inertia::render('Dashboard', ['stats' => $stats]);
}
}