<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <title><?php echo $__env->yieldContent('title', 'لوحة تحكم المدير'); ?> - تطبيق التاكسي</title>

    <!-- Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap" rel="stylesheet">
    <!-- Bootstrap RTL CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.rtl.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

    <style>
        /* ===== CSS Variables ===== */
        :root {
            --sidebar-width: 260px;
            --navbar-height: 64px;
            --gold-50: #FFF9E6;
            --gold-100: #FFF0B3;
            --gold-200: #FFE066;
            --gold-300: #FFD700;
            --gold-400: #FFC107;
            --gold-500: #F5A623;
            --dark-900: #0B0E18;
            --dark-800: #111527;
            --dark-700: #171C32;
            --dark-600: #1E2440;
            --dark-500: #252C4A;
            --dark-400: #2F3755;
            --dark-300: #3D4566;
            --text-primary: #F0F1F5;
            --text-secondary: #9CA3BD;
            --text-muted: #6B7394;
            --green-400: #34D399;
            --green-500: #10B981;
            --red-400: #F87171;
            --red-500: #EF4444;
            --blue-400: #60A5FA;
            --blue-500: #3B82F6;
            --orange-400: #FB923C;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
            --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
            --shadow-glow: 0 0 20px rgba(255,215,0,0.15);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ===== Reset & Base ===== */
        *, *::before, *::after { box-sizing: border-box; }

        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        body {
            font-family: 'Tajawal', sans-serif;
            background: var(--dark-900);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.6;
        }

        /* ===== App Layout ===== */
        .app-layout {
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        /* ===== Sidebar ===== */
        .sidebar {
            width: var(--sidebar-width);
            min-width: var(--sidebar-width);
            height: 100vh;
            background: var(--dark-800);
            border-left: 1px solid rgba(255,215,0,0.08);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            z-index: 1000;
        }

        .sidebar-brand {
            padding: 20px 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid rgba(255,215,0,0.08);
            flex-shrink: 0;
        }

        .sidebar-brand .brand-icon {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--dark-900);
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(255,215,0,0.25);
        }

        .sidebar-brand .brand-text {
            font-size: 18px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.3px;
        }

        .sidebar-brand .brand-sub {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 400;
        }

        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
            padding: 12px;
        }

        .sidebar-nav::-webkit-scrollbar { width: 4px; }
        .sidebar-nav::-webkit-scrollbar-track { background: transparent; }
        .sidebar-nav::-webkit-scrollbar-thumb {
            background: var(--dark-400);
            border-radius: 4px;
        }

        .nav-section-title {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            padding: 16px 12px 8px;
            margin: 0;
        }

        .sidebar-nav .nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            margin: 2px 0;
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .sidebar-nav .nav-link i {
            width: 20px;
            text-align: center;
            font-size: 15px;
            opacity: 0.7;
            transition: var(--transition);
        }

        .sidebar-nav .nav-link:hover {
            color: var(--gold-300);
            background: rgba(255,215,0,0.06);
        }

        .sidebar-nav .nav-link:hover i { opacity: 1; color: var(--gold-300); }

        .sidebar-nav .nav-link.active {
            color: var(--dark-900);
            background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
            font-weight: 700;
            box-shadow: 0 2px 10px rgba(255,215,0,0.3);
        }

        .sidebar-nav .nav-link.active i {
            opacity: 1;
            color: var(--dark-900);
        }

        /* ===== Main Area ===== */
        .main-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-width: 0;
        }

        /* ===== Top Navbar ===== */
        .top-navbar {
            height: var(--navbar-height);
            min-height: var(--navbar-height);
            background: var(--dark-800);
            border-bottom: 1px solid rgba(255,215,0,0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 28px;
            flex-shrink: 0;
            z-index: 900;
        }

        .page-title {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .page-title i {
            color: var(--gold-300);
            font-size: 18px;
        }

        .user-menu {
            position: relative;
        }

        .user-menu-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 14px 6px 10px;
            border-radius: 50px;
            background: var(--dark-700);
            border: 1px solid rgba(255,215,0,0.1);
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            color: var(--text-primary);
        }

        .user-menu-btn:hover {
            background: var(--dark-600);
            border-color: rgba(255,215,0,0.2);
            color: var(--text-primary);
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 13px;
            color: var(--dark-900);
        }

        .user-name {
            font-size: 13px;
            font-weight: 600;
        }

        .dropdown-menu {
            background: var(--dark-700) !important;
            border: 1px solid rgba(255,215,0,0.1) !important;
            border-radius: var(--radius-md) !important;
            box-shadow: var(--shadow-lg) !important;
            padding: 6px !important;
            min-width: 200px;
        }

        .dropdown-item {
            color: var(--text-secondary) !important;
            border-radius: var(--radius-sm);
            padding: 8px 14px !important;
            font-size: 13px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dropdown-item i { width: 16px; text-align: center; color: var(--text-muted); }

        .dropdown-item:hover {
            background: rgba(255,215,0,0.08) !important;
            color: var(--gold-300) !important;
        }

        .dropdown-item:hover i { color: var(--gold-300); }

        .dropdown-item.text-danger { color: var(--red-400) !important; }
        .dropdown-item.text-danger i { color: var(--red-400) !important; }
        .dropdown-item.text-danger:hover { background: rgba(239,68,68,0.08) !important; }

        .dropdown-divider { border-color: rgba(255,255,255,0.06) !important; margin: 4px 0 !important; }

        /* ===== Main Content ===== */
        .main-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 28px;
            background: var(--dark-900);
        }

        .main-content::-webkit-scrollbar { width: 6px; }
        .main-content::-webkit-scrollbar-track { background: transparent; }
        .main-content::-webkit-scrollbar-thumb {
            background: var(--dark-400);
            border-radius: 3px;
        }
        .main-content::-webkit-scrollbar-thumb:hover { background: var(--dark-300); }

        /* ===== Cards ===== */
        .card {
            background: var(--dark-800);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            color: var(--text-primary);
        }

        .card:hover {
            border-color: rgba(255,215,0,0.08);
            box-shadow: var(--shadow-md);
        }

        .card-header {
            background: transparent;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            padding: 16px 20px;
            font-weight: 700;
            font-size: 14px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-header i {
            color: var(--gold-300);
        }

        .card-body {
            padding: 20px;
            color: var(--text-primary);
        }

        /* ===== Stats Cards ===== */
        .stat-card {
            background: var(--dark-800);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: var(--radius-lg);
            padding: 24px 20px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
            opacity: 0;
            transition: var(--transition);
        }

        .stat-card:hover::before { opacity: 1; }

        .stat-card:hover {
            border-color: rgba(255,215,0,0.12);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md), var(--shadow-glow);
        }

        .stat-card .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 16px;
        }

        .stat-card .stat-icon.gold {
            background: rgba(255,215,0,0.1);
            color: var(--gold-300);
        }

        .stat-card .stat-icon.green {
            background: rgba(52,211,153,0.1);
            color: var(--green-400);
        }

        .stat-card .stat-icon.blue {
            background: rgba(96,165,250,0.1);
            color: var(--blue-400);
        }

        .stat-card .stat-icon.orange {
            background: rgba(251,146,60,0.1);
            color: var(--orange-400);
        }

        .stat-card .stat-value {
            font-size: 28px;
            font-weight: 900;
            color: var(--text-primary);
            line-height: 1;
            margin-bottom: 4px;
        }

        .stat-card .stat-label {
            font-size: 12.5px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* ===== Revenue Cards ===== */
        .revenue-item {
            text-align: center;
            padding: 16px 8px;
            border-radius: var(--radius-md);
            background: var(--dark-700);
            transition: var(--transition);
        }

        .revenue-item:hover { background: var(--dark-600); }

        .revenue-item .revenue-label {
            font-size: 11.5px;
            color: var(--text-muted);
            font-weight: 500;
            margin-bottom: 8px;
        }

        .revenue-item .revenue-value {
            font-size: 18px;
            font-weight: 800;
            direction: ltr;
        }

        .revenue-item .revenue-currency {
            font-size: 11px;
            font-weight: 500;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* ===== Tables ===== */
        .table {
            color: var(--text-primary) !important;
            margin-bottom: 0;
            background: var(--dark-800) !important;
        }

        .table thead th {
            background: var(--dark-700) !important;
            color: var(--text-secondary) !important;
            font-size: 11.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            border: none !important;
            padding: 12px 16px !important;
        }

        .table tbody tr {
            background: var(--dark-800) !important;
            border-bottom: 1px solid rgba(255,255,255,0.03) !important;
            transition: var(--transition);
        }

        .table tbody tr:hover {
            background: rgba(255,215,0,0.05) !important;
        }

        .table td {
            background: transparent !important;
            padding: 12px 16px !important;
            vertical-align: middle !important;
            border: none !important;
            color: var(--text-primary) !important;
            font-size: 13px;
        }

        .table td strong { color: var(--text-primary) !important; }
        .table td small { color: var(--text-muted) !important; }

        .table-responsive,
        .admin-table-wrap {
            background: var(--dark-800) !important;
        }

        .main-content .table,
        .main-content .admin-table,
        .card .table,
        .card-body .table {
            --bs-table-bg: var(--dark-800) !important;
            --bs-table-color: var(--text-primary) !important;
            --bs-table-striped-bg: var(--dark-700) !important;
            --bs-table-hover-bg: rgba(255,215,0,0.05) !important;
        }

        /* ===== Badges ===== */
        .badge {
            font-size: 11px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 6px;
            letter-spacing: 0.2px;
        }

        .badge-success { background: rgba(52,211,153,0.15); color: var(--green-400); }
        .badge-warning { background: rgba(255,193,7,0.15); color: var(--gold-400); }
        .badge-danger  { background: rgba(248,113,113,0.15); color: var(--red-400); }
        .badge-info    { background: rgba(96,165,250,0.15); color: var(--blue-400); }
        .badge-secondary { background: rgba(107,115,148,0.15); color: var(--text-muted); }

        /* ===== Buttons ===== */
        .btn-primary {
            background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
            border: none;
            color: var(--dark-900);
            font-weight: 700;
            border-radius: var(--radius-sm);
            font-size: 13px;
            padding: 8px 18px;
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(255,215,0,0.2);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
            color: var(--dark-900);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(255,215,0,0.3);
        }

        .btn-success {
            background: rgba(52,211,153,0.15);
            border: 1px solid rgba(52,211,153,0.3);
            color: var(--green-400);
            font-weight: 600;
            border-radius: var(--radius-sm);
            font-size: 12px;
        }

        .btn-success:hover {
            background: rgba(52,211,153,0.25);
            color: var(--green-400);
            border-color: rgba(52,211,153,0.5);
        }

        .btn-danger {
            background: rgba(248,113,113,0.15);
            border: 1px solid rgba(248,113,113,0.3);
            color: var(--red-400);
            font-weight: 600;
            border-radius: var(--radius-sm);
            font-size: 12px;
        }

        .btn-danger:hover {
            background: rgba(248,113,113,0.25);
            color: var(--red-400);
            border-color: rgba(248,113,113,0.5);
        }

        .btn-info {
            background: rgba(96,165,250,0.15);
            border: 1px solid rgba(96,165,250,0.3);
            color: var(--blue-400);
            font-weight: 600;
            border-radius: var(--radius-sm);
            font-size: 12px;
        }

        .btn-info:hover {
            background: rgba(96,165,250,0.25);
            color: var(--blue-400);
            border-color: rgba(96,165,250,0.5);
        }

        .btn-warning {
            background: rgba(255,193,7,0.15);
            border: 1px solid rgba(255,193,7,0.3);
            color: var(--gold-400);
            font-weight: 600;
            border-radius: var(--radius-sm);
            font-size: 12px;
        }

        .btn-warning:hover {
            background: rgba(255,193,7,0.25);
            color: var(--gold-400);
            border-color: rgba(255,193,7,0.5);
        }

        .btn-secondary {
            background: var(--dark-600);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--text-secondary);
            font-weight: 600;
            border-radius: var(--radius-sm);
            font-size: 13px;
        }

        .btn-secondary:hover {
            background: var(--dark-500);
            color: var(--text-primary);
            border-color: rgba(255,215,0,0.15);
        }

        .btn-outline-primary, .btn-outline-secondary, .btn-outline-info, .btn-outline-success, .btn-outline-danger, .btn-outline-warning {
            background: transparent;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
        }

        .btn-outline-primary { border: 1px solid rgba(255,215,0,0.4); color: var(--gold-300); }
        .btn-outline-primary:hover { background: rgba(255,215,0,0.1); color: var(--gold-300); }
        .btn-outline-secondary { border: 1px solid rgba(255,255,255,0.15); color: var(--text-secondary); }
        .btn-outline-secondary:hover { background: var(--dark-600); color: var(--text-primary); }
        .btn-outline-info { border: 1px solid rgba(96,165,250,0.4); color: var(--blue-400); }
        .btn-outline-info:hover { background: rgba(96,165,250,0.1); color: var(--blue-400); }
        .btn-outline-success { border: 1px solid rgba(52,211,153,0.4); color: var(--green-400); }
        .btn-outline-success:hover { background: rgba(52,211,153,0.1); color: var(--green-400); }
        .btn-outline-danger { border: 1px solid rgba(248,113,113,0.4); color: var(--red-400); }
        .btn-outline-danger:hover { background: rgba(248,113,113,0.1); color: var(--red-400); }
        .btn-outline-warning { border: 1px solid rgba(255,193,7,0.4); color: var(--gold-400); }
        .btn-outline-warning:hover { background: rgba(255,193,7,0.1); color: var(--gold-400); }

        .badge-primary, .badge.bg-primary { background: rgba(255,215,0,0.15); color: var(--gold-300); }
        .badge.bg-info { background: rgba(96,165,250,0.15); color: var(--blue-400); }
        .badge.bg-primary { background: rgba(255,215,0,0.15); color: var(--gold-300); }
        .badge.bg-success { background: rgba(52,211,153,0.15); color: var(--green-400); }
        .badge.bg-warning { background: rgba(255,193,7,0.15); color: var(--gold-400); }
        .badge.bg-danger { background: rgba(248,113,113,0.15); color: var(--red-400); }
        .badge.bg-secondary { background: rgba(107,115,148,0.15); color: var(--text-muted); }
        .badge.bg-dark { background: rgba(107,115,148,0.2); color: var(--text-secondary); }

        /* ===== Modals ===== */
        .modal-content {
            background: var(--dark-800);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: var(--radius-lg);
            color: var(--text-primary);
        }

        .modal-header {
            background: var(--dark-700);
            border-bottom: 1px solid rgba(255,255,255,0.04);
            padding: 16px 20px;
        }

        .modal-title {
            color: var(--text-primary);
            font-weight: 700;
        }

        .modal-body {
            background: var(--dark-800);
            color: var(--text-primary);
        }

        .modal-footer {
            background: var(--dark-700);
            border-top: 1px solid rgba(255,255,255,0.04);
        }

        .form-label { color: var(--text-secondary); }

        /* ===== Nav Tabs ===== */
        .nav-tabs {
            border-bottom: 1px solid rgba(255,255,255,0.06);
            gap: 4px;
        }

        .nav-tabs .nav-link {
            color: var(--text-muted);
            border: none;
            border-bottom: 2px solid transparent;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 600;
            transition: var(--transition);
            border-radius: 0;
        }

        .nav-tabs .nav-link:hover {
            color: var(--text-secondary);
            border-bottom-color: rgba(255,215,0,0.3);
            background: transparent;
        }

        .nav-tabs .nav-link.active {
            color: var(--gold-300);
            background: transparent;
            border-bottom-color: var(--gold-300);
        }

        /* ===== Order Item ===== */
        .order-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            border-radius: var(--radius-sm);
            background: var(--dark-700);
            border: 1px solid rgba(255,255,255,0.03);
            margin-bottom: 8px;
            transition: var(--transition);
        }

        .order-item:hover {
            border-color: rgba(255,215,0,0.08);
            background: var(--dark-600);
        }

        .order-item .order-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 3px;
        }

        .order-item .order-meta {
            font-size: 11.5px;
            color: var(--text-muted);
        }

        .order-item .order-meta i { margin-left: 3px; }

        /* ===== Alerts ===== */
        .alert {
            border-radius: var(--radius-md);
            border: none;
            font-size: 13px;
            font-weight: 500;
            padding: 14px 18px;
        }

        .alert-success {
            background: rgba(52,211,153,0.1);
            border-right: 3px solid var(--green-400);
            color: var(--green-400);
        }

        .alert-danger {
            background: rgba(248,113,113,0.1);
            border-right: 3px solid var(--red-400);
            color: var(--red-400);
        }

        .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

        /* ===== Forms ===== */
        .form-control, .form-select {
            background: var(--dark-700);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-size: 13px;
            padding: 9px 14px;
        }

        .form-control:focus, .form-select:focus {
            background: var(--dark-600);
            border-color: var(--gold-300);
            color: var(--text-primary);
            box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
        }

        .form-control::placeholder { color: var(--text-muted); }

        /* ===== Pagination ===== */
        .pagination .page-link {
            background: var(--dark-700);
            border: 1px solid rgba(255,255,255,0.06);
            color: var(--text-secondary);
            font-size: 13px;
        }

        .pagination .page-item.active .page-link {
            background: var(--gold-300);
            border-color: var(--gold-300);
            color: var(--dark-900);
        }

        .pagination .page-link:hover {
            background: var(--dark-600);
            color: var(--gold-300);
        }

        /* ===== Empty State ===== */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 40px;
            margin-bottom: 12px;
            opacity: 0.3;
        }

        /* ===== Mobile Sidebar Toggle ===== */
        .sidebar-toggle {
            display: none;
            background: var(--dark-700);
            border: 1px solid rgba(255,215,0,0.15);
            color: var(--gold-300);
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 999;
            backdrop-filter: blur(4px);
        }

        /* ===== Responsive ===== */
        @media (max-width: 991px) {
            .sidebar {
                position: fixed;
                right: 0;
                top: 0;
                z-index: 1001;
                transform: translateX(100%);
                transition: transform 0.3s ease;
                box-shadow: var(--shadow-lg);
            }

            .sidebar.show { transform: translateX(0); }

            .sidebar-toggle { display: flex; }

            .sidebar-overlay.show { display: block; }

            .main-content { padding: 16px; }

            .stat-card .stat-value { font-size: 22px; }

            .revenue-item .revenue-value { font-size: 15px; }
        }

        @media (max-width: 575px) {
            .top-navbar { padding: 0 16px; }
            .page-title { font-size: 16px; }
            .main-content { padding: 12px; }
        }
    </style>

    <?php echo $__env->yieldPushContent('styles'); ?>
</head>
<body>
    <div class="app-layout">
        <!-- Sidebar Overlay (mobile) -->
        <div class="sidebar-overlay" id="sidebarOverlay" onclick="toggleSidebar()"></div>

        <!-- Sidebar -->
        <aside class="sidebar" id="sidebar">
            <div class="sidebar-brand">
                <div class="brand-icon">
                    <i class="fas fa-taxi"></i>
                </div>
                <div>
                    <div class="brand-text">تاكسي</div>
                    <div class="brand-sub">لوحة التحكم</div>
                </div>
            </div>

            <nav class="sidebar-nav">
                <p class="nav-section-title">الرئيسية</p>

                <a class="nav-link <?php echo e(request()->routeIs('admin.dashboard') ? 'active' : ''); ?>" href="<?php echo e(route('admin.dashboard')); ?>">
                    <i class="fas fa-tachometer-alt"></i> الرئيسية
                </a>

                <p class="nav-section-title">إدارة المستخدمين</p>

                <a class="nav-link <?php echo e(request()->routeIs('admin.users*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.users')); ?>">
                    <i class="fas fa-users"></i> المستخدمين
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.drivers*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.drivers')); ?>">
                    <i class="fas fa-user-tie"></i> السائقين
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.passengers*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.passengers')); ?>">
                    <i class="fas fa-user"></i> الركاب
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.passenger-extra-services*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.passenger-extra-services.index')); ?>">
                    <i class="fas fa-concierge-bell"></i> خدمات الراكب (إضافية)
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.passenger-extra-service-requests*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.passenger-extra-service-requests.index')); ?>">
                    <i class="fas fa-clipboard-list"></i> طلبات الخدمات الإضافية
                </a>

                <p class="nav-section-title">الخدمات</p>

                <a class="nav-link <?php echo e(request()->routeIs('admin.trips*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.trips')); ?>">
                    <i class="fas fa-route"></i> الرحلات
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.restaurants*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.restaurants')); ?>">
                    <i class="fas fa-utensils"></i> المطاعم
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.vehicles*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.vehicles')); ?>">
                    <i class="fas fa-car"></i> المركبات
                </a>

                <p class="nav-section-title">الغاز والمناطق</p>

                <a class="nav-link <?php echo e(request()->routeIs('admin.gas-offices*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.gas-offices.index')); ?>">
                    <i class="fas fa-building"></i> مكاتب الغاز
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.gas*') && !request()->routeIs('admin.gas-offices*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.gas')); ?>">
                    <i class="fas fa-fire"></i> قناني الغاز
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.governorates*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.governorates.index')); ?>">
                    <i class="fas fa-map-marked-alt"></i> المحافظات
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.cities*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.cities.index')); ?>">
                    <i class="fas fa-city"></i> المدن
                </a>

                <p class="nav-section-title">المالية</p>

                <a class="nav-link <?php echo e(request()->routeIs('admin.payments*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.payments')); ?>">
                    <i class="fas fa-credit-card"></i> المدفوعات
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.platform-fees*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.platform-fees.index')); ?>">
                    <i class="fas fa-money-bill-wave"></i> أجور التطبيق
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.wallet-topup*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.wallet-topup.index')); ?>">
                    <i class="fas fa-wallet"></i> شحن المحفظة
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.points*') && !request()->routeIs('admin.points.earnings*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.points.dashboard')); ?>">
                    <i class="fas fa-star"></i> النقاط والدعوات
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.points.earnings*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.points.earnings')); ?>">
                    <i class="fas fa-dollar-sign"></i> أرباح الإحالات
                </a>

                <p class="nav-section-title">أخرى</p>

                <a class="nav-link <?php echo e(request()->routeIs('admin.offers-ads*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.offers-ads.index')); ?>">
                    <i class="fas fa-bullhorn"></i> العروض والإعلانات
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.reports*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.reports')); ?>">
                    <i class="fas fa-chart-bar"></i> التقارير
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.maps*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.maps.index')); ?>">
                    <i class="fas fa-map"></i> إدارة الخريطة
                </a>
                <a class="nav-link <?php echo e(request()->routeIs('admin.settings*') ? 'active' : ''); ?>" href="<?php echo e(route('admin.settings.index')); ?>">
                    <i class="fas fa-cog"></i> الإعدادات
                </a>
            </nav>
        </aside>

        <!-- Main Area -->
        <div class="main-area">
            <!-- Top Navbar -->
            <header class="top-navbar">
                <div class="d-flex align-items-center gap-3">
                    <button class="sidebar-toggle" onclick="toggleSidebar()">
                        <i class="fas fa-bars"></i>
                    </button>
                    <div class="page-title">
                        <i class="<?php echo $__env->yieldContent('page-icon', 'fas fa-tachometer-alt'); ?>"></i>
                        <?php echo $__env->yieldContent('page-title', 'لوحة التحكم'); ?>
                    </div>
                </div>

                <div class="user-menu dropdown">
                    <a class="user-menu-btn" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        <div class="user-avatar"><?php echo e(substr(Auth::user()->name, 0, 1)); ?></div>
                        <span class="user-name d-none d-sm-inline"><?php echo e(Auth::user()->name); ?></span>
                        <i class="fas fa-chevron-down" style="font-size: 10px; color: var(--text-muted);"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-end">
                        <li>
                            <a class="dropdown-item" href="<?php echo e(route('profile')); ?>">
                                <i class="fas fa-user"></i> الملف الشخصي
                            </a>
                        </li>
                        <li>
                            <a class="dropdown-item" href="<?php echo e(route('change.password')); ?>">
                                <i class="fas fa-key"></i> تغيير كلمة المرور
                            </a>
                        </li>
                        <li>
                            <a class="dropdown-item" href="<?php echo e(route('admin.settings.index')); ?>">
                                <i class="fas fa-cog"></i> الإعدادات
                            </a>
                        </li>
                        <li><hr class="dropdown-divider"></li>
                        <li>
                            <form method="POST" action="<?php echo e(route('logout')); ?>">
                                <?php echo csrf_field(); ?>
                                <button type="submit" class="dropdown-item text-danger">
                                    <i class="fas fa-sign-out-alt"></i> تسجيل الخروج
                                </button>
                            </form>
                        </li>
                    </ul>
                </div>
            </header>

            <!-- Page Content -->
            <main class="main-content">
                <?php if(session('success')): ?>
                    <div class="alert alert-success alert-dismissible fade show mb-4" role="alert">
                        <i class="fas fa-check-circle me-2"></i> <?php echo e(session('success')); ?>

                        <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                    </div>
                <?php endif; ?>

                <?php if(session('error')): ?>
                    <div class="alert alert-danger alert-dismissible fade show mb-4" role="alert">
                        <i class="fas fa-exclamation-circle me-2"></i> <?php echo e(session('error')); ?>

                        <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                    </div>
                <?php endif; ?>

                <?php echo $__env->yieldContent('content'); ?>
            </main>
        </div>
    </div>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- SweetAlert2 -->
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <!-- Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

    <script>
        function toggleSidebar() {
            document.getElementById('sidebar').classList.toggle('show');
            document.getElementById('sidebarOverlay').classList.toggle('show');
        }
    </script>

    <?php echo $__env->yieldContent('scripts'); ?>
    <?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html><?php /**PATH C:\wamp64\www\taxi_app\resources\views/admin/layouts/app.blade.php ENDPATH**/ ?>