<!DOCTYPE html>
<html lang="en">

@php
// Helper functions
if (!function_exists('formatRupiah')) {
    function formatRupiah($amount) {
        return 'Rp ' . number_format($amount, 0, ',', '.');
    }
}

if (!function_exists('getStatusBadge')) {
    function getStatusBadge($status) {
        $badges = [
            'pending' => '<span class="badge bg-warning">Pending</span>',
            'confirmed' => '<span class="badge bg-success">Confirmed</span>',
            'rejected' => '<span class="badge bg-danger">Rejected</span>',
            'completed' => '<span class="badge bg-info">Completed</span>',
            'cancelled' => '<span class="badge bg-secondary">Cancelled</span>',
            'aktif' => '<span class="badge bg-success">Aktif</span>',
            'tidak_aktif' => '<span class="badge bg-danger">Tidak Aktif</span>',
            'verified' => '<span class="badge bg-success">Verified</span>',
        ];
        
        return $badges[$status] ?? '<span class="badge bg-secondary">' . ucfirst($status) . '</span>';
    }
}


if (!function_exists('getPaymentBadgeHtml')) {
    function getPaymentBadgeHtml($status) {
        $badges = [
            'pending' => '<span class="badge bg-warning">Pending</span>',
            'verified' => '<span class="badge bg-success">Verified</span>',
            'rejected' => '<span class="badge bg-danger">Rejected</span>'
        ];
        
        return $badges[$status] ?? '<span class="badge bg-secondary">' . ucfirst($status) . '</span>';
    }
}
@endphp

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{ config('app.name') }} - @yield('title', 'Dashboard')</title>
    
    <!-- 3D Canvas Container -->
    <div id="canvas-3d"></div>
    
    <!-- Bootstrap 5 CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
    
    <!-- Font Awesome 6 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <!-- Select2 CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css">
    
    <style>
        :root {
            --cream-50: #FFFEFA;
            --cream-100: #FFFAF0;
            --cream-200: #FFF5E1;
            --cream-300: #FFEEDD;
            --cream-400: #FFE4CC;
            --cream-500: #FFDAB9;
            --charcoal-50: #F8F8F8;
            --charcoal-100: #E8E8E8;
            --charcoal-200: #D0D0D0;
            --charcoal-300: #B8B8B8;
            --charcoal-400: #A0A0A0;
            --charcoal-500: #888888;
            --charcoal-600: #707070;
            --charcoal-700: #585858;
            --charcoal-800: #404040;
            --charcoal-900: #1A1A1A;
        }
        
        * {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        body {
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 100%);
            font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
        }
        
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 280px;
            background: linear-gradient(180deg, var(--charcoal-900) 0%, var(--charcoal-800) 100%);
            padding: 0;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        }
        
        .sidebar .nav-link {
            color: var(--cream-100);
            border-radius: 12px;
            margin: 4px 12px;
            padding: 12px 16px;
            position: relative;
            overflow: hidden;
        }
        
        .sidebar .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 218, 185, 0.1), transparent);
            transition: left 0.5s;
        }
        
        .sidebar .nav-link:hover::before {
            left: 100%;
        }
        
        .sidebar .nav-link:hover {
            color: var(--cream-50);
            background: linear-gradient(135deg, var(--charcoal-700) 0%, var(--charcoal-600) 100%);
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(255, 218, 185, 0.2);
        }
        
        .sidebar .nav-link.active {
            background: linear-gradient(135deg, var(--cream-500) 0%, var(--cream-400) 100%);
            color: var(--charcoal-900);
            font-weight: 600;
            box-shadow: 0 4px 20px rgba(255, 218, 185, 0.3);
        }
        
        .main-content {
            margin-left: 280px;
            min-height: 100vh;
            background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 50%, var(--cream-200) 100%);
            padding: 30px;
            position: relative;
        }
        
        .main-content::before {
            content: '';
            position: fixed;
            top: 0;
            left: 280px;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(255, 218, 185, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(26, 26, 26, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }
        
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
            }
            .main-content {
                margin-left: 0;
            }
        }
        
        /* Custom badge styles */
        .badge {
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 500;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .bg-warning { background: linear-gradient(135deg, var(--cream-500) 0%, var(--cream-400) 100%) !important; color: var(--charcoal-900) !important; }
        .bg-success { background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important; }
        .bg-danger { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important; }
        .bg-info { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important; }
        .bg-secondary { background: linear-gradient(135deg, var(--charcoal-500) 0%, var(--charcoal-600) 100%) !important; }
        
        /* Alert styles */
        .alert {
            border: none;
            border-radius: 16px;
            padding: 16px 20px;
            margin-bottom: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        .alert-success {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
            color: var(--charcoal-900);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }
        
        .alert-danger {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
            color: var(--charcoal-900);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }
        
        /* Card styles */
        .card {
            border: none;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
        }
        
        /* Button styles */
        .btn {
            border-radius: 12px;
            padding: 10px 24px;
            font-weight: 500;
            border: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--charcoal-800) 0%, var(--charcoal-900) 100%);
            color: var(--cream-50);
        }
        
        .btn-primary:hover {
            background: linear-gradient(135deg, var(--charcoal-700) 0%, var(--charcoal-800) 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }
        
        /* Stat Cards */
        .stat-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--cream-400), var(--cream-500));
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            flex-shrink: 0;
        }
        
        .stat-content {
            flex-grow: 1;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            margin: 0;
            color: var(--charcoal-900);
            line-height: 1;
        }
        
        .stat-label {
            margin: 0.25rem 0 0 0;
            color: var(--charcoal-600);
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        /* Custom Card Headers */
        .card-header-custom {
            padding: 1.5rem;
            border-bottom: 1px solid var(--cream-200);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
            border-radius: 20px 20px 0 0;
        }
        
        .card-body-custom {
            padding: 1.5rem;
        }
        
        /* Table Styles */
        .table {
            background: transparent;
        }
        
        .table thead th {
            background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-200) 100%);
            color: var(--charcoal-900);
            font-weight: 600;
            border: none;
            padding: 1rem;
        }
        
        .table tbody tr {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
        }
        
        .table tbody tr:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: scale(1.01);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .table tbody td {
            padding: 1rem;
            vertical-align: middle;
            border-color: var(--cream-200);
            color: var(--charcoal-700);
        }
        
        /* Flow Design Styles */
        .stats-flow {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }
        
        .stat-bubble {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 100px;
            padding: 1.5rem 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }
        
        .stat-bubble::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 218, 185, 0.2), transparent);
            transition: left 0.6s;
        }
        
        .stat-bubble:hover::before {
            left: 100%;
        }
        
        .stat-bubble:hover {
            transform: translateY(-8px) scale(1.05);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            border-color: var(--cream-400);
        }
        
        .bubble-content {
            display: flex;
            align-items: center;
            gap: 1rem;
            z-index: 1;
            position: relative;
        }
        
        .bubble-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--charcoal-600) 0%, var(--charcoal-800) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: white;
            flex-shrink: 0;
        }
        
        .bubble-icon.pending {
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
        }
        
        .bubble-icon.confirmed {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        }
        
        .bubble-icon.history {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        }
        
        .bubble-info {
            display: flex;
            flex-direction: column;
        }
        
        .bubble-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--charcoal-900);
            line-height: 1;
            margin-bottom: 0.25rem;
        }
        
        .bubble-label {
            font-size: 0.9rem;
            color: var(--charcoal-600);
            font-weight: 500;
        }
        
        /* Flow Card */
        .flow-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
        }
        
        .flow-header {
            padding: 2rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .flow-title {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .title-icon {
            width: 50px;
            height: 50px;
            border-radius: 15px;
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--charcoal-900);
        }
        
        .flow-title h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-700) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .flow-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: linear-gradient(135deg, var(--charcoal-800) 0%, var(--charcoal-900) 100%);
            color: var(--cream-50);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .flow-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .flow-btn.primary {
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            color: var(--charcoal-900);
        }
        
        .flow-content {
            padding: 2rem;
        }
        
        /* Flow Table */
        .flow-table {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .flow-row {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: auto 1fr auto auto auto auto;
            gap: 1rem;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .flow-row:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateX(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .row-code .code-badge {
            background: linear-gradient(135deg, var(--charcoal-600) 0%, var(--charcoal-800) 100%);
            color: var(--cream-50);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .field-info, .date-info, .time-info, .price-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--charcoal-700);
        }
        
        .field-info i, .date-info i, .time-info i, .price-info i {
            color: var(--cream-500);
            font-size: 0.9rem;
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
        }
        
        .empty-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 2rem;
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--charcoal-900);
        }
        
        .empty-state h3 {
            color: var(--charcoal-900);
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        
        .empty-state p {
            color: var(--charcoal-600);
            margin-bottom: 2rem;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .stats-flow {
                flex-direction: column;
                align-items: stretch;
            }
            
            .stat-bubble {
                justify-content: center;
            }
            
            .flow-header {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            .flow-row {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            
            .flow-row > div {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
        }
        
        /* Admin Dashboard Styles */
        .admin-welcome {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .welcome-content {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        
        .welcome-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--charcoal-900);
            animation: pulse-icon 2s ease-in-out infinite;
        }
        
        .welcome-text h2 {
            margin: 0;
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-700) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .welcome-text p {
            margin: 0.5rem 0 0 0;
            color: var(--charcoal-600);
            font-size: 1.1rem;
        }
        
        .stats-overview {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .stat-item {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .stat-item:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: white;
        }
        
        .stat-icon.users {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        }
        
        .stat-icon.fields {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        }
        
        .stat-icon.bookings {
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            color: var(--charcoal-900);
        }
        
        .stat-icon.revenue {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
        }
        
        .stat-info {
            flex-grow: 1;
        }
        
        .stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--charcoal-900);
            line-height: 1;
            margin-bottom: 0.25rem;
        }
        
        .stat-label {
            color: var(--charcoal-600);
            font-size: 0.9rem;
        }
        
        .quick-actions {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--charcoal-900);
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-700) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .actions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
        }
        
        .action-btn {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: var(--charcoal-900);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .action-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 218, 185, 0.1), transparent);
            transition: left 0.6s;
        }
        
        .action-btn:hover::before {
            left: 100%;
        }
        
        .action-btn:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--cream-400);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .action-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--charcoal-900);
            transition: all 0.3s ease;
        }
        
        .action-btn:hover .action-icon {
            transform: scale(1.1);
            box-shadow: 0 8px 20px rgba(255, 218, 185, 0.3);
        }
        
        .action-btn span {
            font-weight: 500;
            text-align: center;
        }
        
        .recent-activity {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 2rem;
        }
        
        .activity-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .activity-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            transition: all 0.3s ease;
            animation: slideInLeft 0.5s ease-out;
        }
        
        .activity-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(10px);
        }
        
        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: white;
            flex-shrink: 0;
        }
        
        .activity-icon.booking {
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            color: var(--charcoal-900);
        }
        
        .activity-icon.user {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        }
        
        .activity-icon.payment {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        }
        
        .activity-content {
            flex-grow: 1;
        }
        
        .activity-text {
            color: var(--charcoal-900);
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .activity-time {
            color: var(--charcoal-600);
            font-size: 0.85rem;
        }
        
        /* Responsive Admin Dashboard */
        @media (max-width: 768px) {
            .welcome-content {
                flex-direction: column;
                text-align: center;
            }
            
            .stats-overview {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .actions-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .welcome-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
            
            .welcome-text h2 {
                font-size: 1.5rem;
            }
        }
        
        /* Admin CRUD Styles */
        .admin-header {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .header-info h2 {
            margin: 0;
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-700) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .header-info p {
            margin: 0.5rem 0 0 0;
            color: var(--charcoal-600);
        }
        
        .user-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: white;
        }
        
        .stat-icon.total {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        }
        
        .stat-icon.customer {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        }
        
        .stat-icon.staff {
            background: linear-gradient(135deg, var(--cream-400) 0%, var(--cream-500) 100%);
            color: var(--charcoal-900);
        }
        
        .stat-icon.active {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
        }
        
        .stat-info {
            flex-grow: 1;
        }
        
        .stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--charcoal-900);
            line-height: 1;
            margin-bottom: 0.25rem;
        }
        
        .stat-label {
            color: var(--charcoal-600);
            font-size: 0.9rem;
        }
        
        .filter-section {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .filter-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .filter-group {
            flex: 1;
            min-width: 200px;
        }
        
        .filter-select, .filter-input {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            color: var(--charcoal-900);
            font-size: 0.9rem;
            outline: none;
            transition: all 0.3s ease;
        }
        
        .filter-select:focus, .filter-input:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--cream-400);
            box-shadow: 0 0 20px rgba(255, 218, 185, 0.2);
        }
        
        .search-group {
            position: relative;
            flex: 2;
        }
        
        .search-btn {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 8px;
            padding: 0.5rem;
            color: var(--charcoal-700);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-btn:hover {
            background: var(--cream-400);
            color: var(--charcoal-900);
        }
        
        .filter-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .btn-transparent {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 0.75rem 1.5rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--charcoal-900);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-transparent::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 218, 185, 0.1), transparent);
            transition: left 0.6s;
        }
        
        .btn-transparent:hover::before {
            left: 100%;
        }
        
        .btn-transparent:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--cream-400);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }
        
        .btn-transparent.danger:hover {
            border-color: #ef4444;
            color: #ef4444;
        }
        
        .btn-transparent.warning:hover {
            border-color: #f59e0b;
            color: #f59e0b;
        }
        
        .btn-transparent.success:hover {
            border-color: #10b981;
            color: #10b981;
        }
        
        .user-list {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 2rem;
        }
        
        .list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }
        
        .list-title h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--charcoal-900);
        }
        
        .list-title span {
            color: var(--charcoal-600);
            font-size: 0.9rem;
        }
        
        .bulk-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .user-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }
        
        .user-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            animation: fadeInUp 0.5s ease-out;
        }
        
        .user-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .user-avatar {
            margin-bottom: 1rem;
        }
        
        .user-avatar img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .avatar-placeholder {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.2rem;
            color: white;
        }
        
        .avatar-placeholder.customer {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        }
        
        .avatar-placeholder.manager {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }
        
        .avatar-placeholder.admin {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }
        
        .avatar-placeholder.superadmin {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
        }
        
        .user-info {
            margin-bottom: 1rem;
        }
        
        .user-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--charcoal-900);
            margin-bottom: 0.25rem;
        }
        
        .user-email {
            color: var(--charcoal-600);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .user-details {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .detail-item {
            color: var(--charcoal-600);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .detail-item i {
            color: var(--cream-500);
            font-size: 0.8rem;
        }
        
        .user-meta {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .role-badge, .status-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .role-badge.customer {
            background: rgba(59, 130, 246, 0.2);
            color: #3B82F6;
        }
        
        .role-badge.manager {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }
        
        .role-badge.admin {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        
        .role-badge.superadmin {
            background: rgba(139, 92, 246, 0.2);
            color: #8B5CF6;
        }
        
        .status-badge.active {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }
        
        .status-badge.inactive {
            background: rgba(107, 114, 128, 0.2);
            color: #6b7280;
        }
        
        .user-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .checkbox-wrapper input {
            width: 18px;
            height: 18px;
            accent-color: var(--cream-500);
        }
        
        .action-buttons {
            display: flex;
            gap: 0.5rem;
        }
        
        .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            color: var(--charcoal-700);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .action-btn.info:hover {
            background: rgba(59, 130, 246, 0.2);
            color: #3B82F6;
            border-color: #3B82F6;
        }
        
        .action-btn.warning:hover {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
            border-color: #f59e0b;
        }
        
        .action-btn.success:hover {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border-color: #10b981;
        }
        
        .action-btn.danger:hover {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border-color: #ef4444;
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 25px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .modal-header h3 {
            margin: 0;
            color: var(--charcoal-900);
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--charcoal-600);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .close-btn:hover {
            color: var(--charcoal-900);
        }
        
        .detail-view {
            text-align: center;
        }
        
        .detail-avatar {
            margin-bottom: 1.5rem;
        }
        
        .detail-info h4 {
            margin: 0 0 1rem 0;
            color: var(--charcoal-900);
        }
        
        .detail-details {
            text-align: left;
        }
        
        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .detail-row label {
            font-weight: 600;
            color: var(--charcoal-700);
        }
        
        .detail-row span {
            color: var(--charcoal-600);
        }
        
        .pagination-wrapper {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
        }
        
        /* Responsive CRUD */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            .filter-row {
                flex-direction: column;
            }
            
            .filter-group {
                width: 100%;
            }
            
            .list-header {
                flex-direction: column;
                gap: 1rem;
            }
            
            .user-grid {
                grid-template-columns: 1fr;
            }
            
            .bulk-actions {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        
        /* Lapangan Cards Styles */
        .lapangan-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .lapangan-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .lapangan-card .card-img-top {
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .lapangan-card:hover .card-img-top {
            transform: scale(1.05);
        }
        
        .lapangan-card .card-body {
            padding: 1.5rem;
        }
        
        .lapangan-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--charcoal-900);
            margin-bottom: 0.5rem;
        }
        
        .lapangan-location {
            color: var(--charcoal-600);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .fasilitas-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            margin-bottom: 1rem;
        }
        
        .fasilitas-badge {
            background: rgba(59, 130, 246, 0.1);
            color: #3B82F6;
            padding: 0.25rem 0.5rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .status-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .status-badge.aktif {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }
        
        .status-badge.tidak-aktif {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        
        .btn-action {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            color: var(--charcoal-700);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 0.9rem;
        }
        
        .btn-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .btn-action.btn-transparent:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--cream-400);
            color: var(--charcoal-900);
        }
        
        .btn-action.btn-danger:hover {
            background: rgba(239, 68, 68, 0.2);
            border-color: #ef4444;
            color: #ef4444;
        }
        
        .btn-action.btn-success:hover {
            background: rgba(16, 185, 129, 0.2);
            border-color: #10b981;
            color: #10b981;
        }
        
        .lapangan-info {
            color: var(--charcoal-600);
            font-size: 0.85rem;
            line-height: 1.4;
        }
        
        .lapangan-info i {
            color: var(--cream-500);
            font-size: 0.8rem;
        }
    </style>
</head>
<body>
    @if(Auth::check())
        <!-- Sidebar -->
        <nav class="sidebar">
            <div class="pt-3">
                        <div class="text-center mb-6 p-4">
                            <h5 class="text-white text-xl font-bold mb-2" style="animation: fadeInUp 0.6s ease-out;">{{ config('app.name') }}</h5>
                            <small class="text-cream-200 text-sm" style="animation: fadeInUp 0.8s ease-out;">{{ Auth::user()->name }} ({{ ucfirst(Auth::user()->role) }})</small>
                        </div>
                        
                        <ul class="nav flex-column">
                            <!-- Dashboard -->
                            <li class="nav-item">
                                <a class="nav-link {{ request()->routeIs('dashboard') ? 'active' : '' }}" 
                                   href="{{ route('dashboard') }}">
                                    <i class="fas fa-tachometer-alt me-2"></i> Dashboard
                                </a>
                            </li>
                            
                            <!-- Bookings -->
                            <li class="nav-item">
                                <a class="nav-link {{ request()->routeIs('bookings.*') ? 'active' : '' }}" 
                                   href="{{ route('bookings.index') }}">
                                    <i class="fas fa-calendar me-2"></i> 
                                    @if(Auth::user()->isCustomer())
                                        Booking Saya
                                    @elseif(Auth::user()->isManager())
                                        Konfirmasi Booking
                                    @else
                                        Semua Booking
                                    @endif
                                </a>
                            </li>
                            
                            <!-- Lapangans -->
                            <li class="nav-item">
                                <a class="nav-link {{ request()->routeIs('lapangans.*') ? 'active' : '' }}" 
                                   href="{{ route('lapangans.index') }}">
                                    <i class="fas fa-map me-2"></i> 
                                    @if(Auth::user()->isCustomer())
                                        Cari Lapangan
                                    @else
                                        Kelola Lapangan
                                    @endif
                                </a>
                            </li>
                            
                            <!-- Users - hanya admin dan superadmin -->
                            @if(Auth::user()->isAdmin() || Auth::user()->isSuperAdmin())
                                <li class="nav-item">
                                    <a class="nav-link {{ request()->routeIs('users.*') ? 'active' : '' }}" 
                                       href="{{ route('users.index') }}">
                                        <i class="fas fa-users me-2"></i> Kelola User
                                    </a>
                                </li>
                            @endif
                            
                            <!-- Keuangan - manager dan admin -->
                            @if(Auth::user()->isManager() || Auth::user()->isAdmin())
                                <li class="nav-item">
                                    <a class="nav-link {{ request()->routeIs('keuangan.*') ? 'active' : '' }}" 
                                       href="{{ route('keuangan.index') }}">
                                        <i class="fas fa-money-bill-wave me-2"></i> Keuangan
                                    </a>
                                </li>
                            @endif
                            
                            <!-- Settings - hanya superadmin -->
                            @if(Auth::user()->isSuperAdmin())
                                <li class="nav-item">
                                    <a class="nav-link {{ request()->routeIs('settings.*') ? 'active' : '' }}" 
                                       href="{{ route('settings.index') }}">
                                        <i class="fas fa-cog me-2"></i> Web Setting
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link {{ request()->routeIs('users.*') ? 'active' : '' }}" 
                                       href="{{ route('users.index') }}">
                                        <i class="fas fa-user-shield me-2"></i> Hak Akses
                                    </a>
                                </li>
                            @endif
                            
                            <!-- Activities -->
                            <li class="nav-item mt-3">
                                <a class="nav-link {{ request()->routeIs('activities.*') ? 'active' : '' }}" 
                                   href="{{ route('activities.index') }}">
                                    <i class="fas fa-history me-2"></i> Log Activity
                                </a>
                            </li>
                            
                            <li class="nav-item">
                                <a class="nav-link" href="{{ route('logout') }}" 
                                   onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                                    <i class="fas fa-sign-out-alt me-2"></i> Logout
                                </a>
                            </li>
                        </ul>
                    </div>
                </nav>
                
                <!-- Main Content -->
                <main class="main-content">
                    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-4 pb-3 mb-4 border-bottom border-charcoal-200">
                        <h1 class="h2 text-gradient mb-0" style="animation: slideInLeft 0.6s ease-out;">@yield('title', 'Dashboard')</h1>
                    </div>
                    
                    <!-- Flash Messages -->
                    @if(session('success'))
                        <div class="alert alert-success alert-dismissible fade show" role="alert">
                            {{ session('success') }}
                            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                        </div>
                    @endif
                    
                    @if(session('error'))
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            {{ session('error') }}
                            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                        </div>
                    @endif
                    
                    @if($errors->any())
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            <strong>Error!</strong> Silakan periksa kembali input Anda.
                            <ul class="mb-0 mt-2">
                                @foreach($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                        </div>
                    @endif
                    
                    @yield('content')
                </main>
            </div>
        </div>
    @else
        @yield('content')
    @endif

    <!-- Logout Form -->
    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
        @csrf
    </form>
    
    <!-- Bootstrap 5 JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <!-- jQuery (dibutuhkan Select2) -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
    
    <!-- Select2 JS -->
    <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
    
    <!-- SweetAlert2 -->
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.all.min.js"></script>
    
    <!-- JavaScript Helper Functions -->
    <script>
        // Format number to Rupiah
        function formatRupiah(amount) {
            return 'Rp ' + new Intl.NumberFormat('id-ID').format(amount);
        }
        
        // Get status badge HTML
        function getStatusBadgeHtml(status) {
            const badges = {
                'pending': '<span class="badge bg-warning">Pending</span>',
                'confirmed': '<span class="badge bg-success">Confirmed</span>',
                'rejected': '<span class="badge bg-danger">Rejected</span>',
                'completed': '<span class="badge bg-info">Completed</span>',
                'cancelled': '<span class="badge bg-secondary">Cancelled</span>',
                'aktif': '<span class="badge bg-success">Aktif</span>',
                'tidak_aktif': '<span class="badge bg-danger">Tidak Aktif</span>',
                'verified': '<span class="badge bg-success">Verified</span>',
            };
            
            return badges[status] || '<span class="badge bg-secondary">' + status.charAt(0).toUpperCase() + status.slice(1) + '</span>';
        }
        
        // Get payment badge HTML
        function getPaymentBadgeHtml(status) {
            const badges = {
                'pending': '<span class="badge bg-warning">Pending</span>',
                'verified': '<span class="badge bg-success">Verified</span>',
                'rejected': '<span class="badge bg-danger">Rejected</span>'
            };
            
            return badges[status] || '<span class="badge bg-secondary">' + status.charAt(0).toUpperCase() + status.slice(1) + '</span>';
        }
    </script>
    
    @yield('scripts')
</body>
</html>
