<?php
/**
 * POS Controller
 * Point of Sale functionality
 * 
 * @package RashwansBarber
 * @version 1.0
 */

class POSController extends Controller {
    
    public function __construct() {
        parent::__construct();
        $this->requireLogin();
    }
    
    /**
     * POS main page
     */
    public function index() {
        $data = [
            'title' => 'Point of Sale - ' . config('app_name'),
            'user' => $this->getCurrentUser()
        ];
        
        // For now, just show a coming soon message
        echo '<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>' . $data['title'] . '</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container mt-5">
        <div class="alert alert-info">
            <h2><i class="fas fa-cash-register"></i> POS System</h2>
            <p>Point of Sale functionality coming soon!</p>
            <a href="' . url('dashboard') . '" class="btn btn-primary">Back to Dashboard</a>
        </div>
    </div>
</body>
</html>';
    }
}
?>
