- Adds Character model with survival needs (hunger, thirst, energy) and state machine - Implements city:tick world ticker for offline progression every minute - Adds city territory expansion and building construction system - Introduces job economy, inventory, and transaction audit trail - Adds social graph (friends, marriage, children) and character chat - Implements admin approval workflow for new registrations - Adds hospital admission system for traffic accidents - Includes comprehensive feature tests and world seeders
31 lines
708 B
PHP
Executable File
31 lines
708 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Controllers\Web;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\View\View;
|
|
|
|
/**
|
|
* Dashboard controller for the authenticated web area.
|
|
*
|
|
* Phase 1 renders an overview panel; the full admin console and 3D city
|
|
* viewer are delivered in subsequent phases.
|
|
*/
|
|
class DashboardController extends Controller
|
|
{
|
|
/**
|
|
* Show the user dashboard overview.
|
|
*/
|
|
public function __invoke(Request $request): View
|
|
{
|
|
$user = $request->user();
|
|
|
|
return view('dashboard.index', [
|
|
'user' => $user,
|
|
'isAdmin' => $user->isAdmin(),
|
|
'storeCount' => $user->stores()->count(),
|
|
]);
|
|
}
|
|
}
|