<?php
require_once BASE_PATH . '/app/controllers/customer/CustomerBaseController.php';
require_once BASE_PATH . '/app/models/Booking.php';
class CustomerDashboardController extends CustomerBaseController { public function __construct() { $this->requireCustomer(); } public function index(): void { $bookingModel = new Booking(); $customerId = (int) $_SESSION['user']['id']; $summary = $bookingModel->customerSummary($customerId); $recentBookings = $bookingModel->getForCustomer($customerId, '', 5); require BASE_PATH . '/app/views/customer/dashboard.php'; } }
