<?php
/**
 * Create these files in /var/www/html/barber/app/controllers/
 */

// ========================================
// ReportsController.php
// ========================================
class ReportsController extends Controller {
    public function __construct() {
        parent::__construct();
        $this->requireLogin();
    }
    
    public function index() {
        echo $this->comingSoonPage('Reports', 'chart-line');
    }
}

// ========================================
// BarbersController.php
// ========================================
class BarbersController extends Controller {
    public function __construct() {
        parent::__construct();
        $this->requireLogin();
    }
    
    public function index() {
        echo $this->comingSoonPage('Barbers Management', 'cut');
    }
}

// ========================================
// ServicesController.php
// ========================================
class ServicesController extends Controller {
    public function __construct() {
        parent::__construct();
        $this->requireLogin();
    }
    
    public function index() {
        echo $this->comingSoonPage('Services Management', 'list');
    }
}

// ========================================
// ProfileController.php
// ========================================
class ProfileController extends Controller {
    public function __construct() {
        parent::__construct();
        $this->requireLogin();
    }
    
    public function index() {
        echo $this->comingSoonPage('Profile', 'user');
    }
}

// ========================================
// SettingsController.php
// ========================================
class SettingsController extends Controller {
    public function __construct() {
        parent::__construct();
        $this->requireLogin();
    }
    
    public function index() {
        echo $this->comingSoonPage('Settings', 'cog');
    }
}

// ========================================
// Add this method to Controller.php (app/core/Controller.php)
// Add after the logAudit() method:
// ========================================

protected function comingSoonPage($pageName, $icon = 'tools') {
    $user = $this->getCurrentUser();
    return '<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>' . $pageName . ' - ' . config('app_name') . '</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
    <style>
        body { 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .coming-soon-card {
            background: white;
            border-radius: 20px;
            padding: 50px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            text-align: center;
            max-width: 500px;
        }
        .icon-circle {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 30px;
        }
    </style>
</head>
<body>
    <div class="coming-soon-card">
        <div class="icon-circle">
            <i class="fas fa-' . $icon . ' fa-3x text-white"></i>
        </div>
        <h1>' . $pageName . '</h1>
        <p class="lead text-muted mb-4">This feature is under development and will be available soon!</p>
        <a href="' . url('dashboard') . '" class="btn btn-primary btn-lg">
            <i class="fas fa-arrow-left"></i> Back to Dashboard
        </a>
    </div>
</body>
</html>';
}
?>
