<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <div class="flex items-center justify-between">
            <div>
                <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
                    <?php echo e(__('Loka Dashboard')); ?> 
                    <span class="text-amber-600 dark:text-amber-400">/ Admin Control</span>
                </h2>
                <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">Kelola toko furniture Anda dengan mudah</p>
            </div>
            <div class="hidden md:block">
                <span class="text-xs bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-400 px-3 py-1.5 rounded-full font-semibold border border-amber-200 dark:border-amber-800/40">
                    <i class="fas fa-calendar-alt mr-1"></i> <?php echo e(now()->format('d F Y')); ?>

                </span>
            </div>
        </div>
     <?php $__env->endSlot(); ?>

    <div class="py-8 bg-gradient-to-b from-amber-50/40 to-white dark:from-gray-900 dark:to-gray-800 min-h-screen">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="space-y-6">

                
                <?php if(session('success')): ?>
                    <div class="bg-emerald-500 text-white p-4 rounded-2xl shadow-lg border-l-8 border-emerald-700 flex items-center gap-3 animate-pulse">
                        <i class="fas fa-check-circle text-xl"></i>
                        <span class="font-semibold"><?php echo e(session('success')); ?></span>
                    </div>
                <?php endif; ?>

                
                <div class="relative overflow-hidden rounded-3xl shadow-xl" style="background: linear-gradient(135deg, #c2700a 0%, #92400e 60%, #78350f 100%);">
                    <div class="relative z-10 p-8">
                        <div class="flex items-start justify-between">
                            <div>
                                <div class="inline-flex items-center bg-white/15 backdrop-blur-sm px-3 py-1 rounded-full border border-white/25 mb-4">
                                    <span class="flex h-2 w-2 rounded-full bg-emerald-400 mr-2 animate-pulse"></span>
                                    <span class="text-[10px] font-bold text-white uppercase tracking-wider">Admin Mode</span>
                                </div>
                                <h3 class="text-3xl font-bold text-white tracking-tight">
                                    <?php echo e($greeting ?? 'Selamat Datang'); ?>, <?php echo e(Auth::user()->name); ?>! 🛠️
                                </h3>
                                <div class="flex items-center gap-3 mt-3 flex-wrap">
                                    <span class="bg-white/20 backdrop-blur-sm px-3 py-1 rounded-full text-xs font-semibold text-white border border-white/20">
                                        <i class="fas fa-store mr-1"></i> Status Toko: ONLINE
                                    </span>
                                    <span class="bg-white/20 backdrop-blur-sm px-3 py-1 rounded-full text-xs font-semibold text-white border border-white/20">
                                        <i class="fas fa-user-shield mr-1"></i> Role: Administrator
                                    </span>
                                </div>
                                <p class="mt-4 text-amber-100/90 text-sm">
                                    Kelola produk, pantau pesanan, dan optimalkan penjualan furniture Anda.
                                </p>
                            </div>
                            <div class="hidden md:block shrink-0">
                                <div class="w-16 h-16 bg-white/20 rounded-2xl flex items-center justify-center backdrop-blur-sm border border-white/20">
                                    <i class="fas fa-couch text-3xl text-white"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="absolute -right-10 -top-10 w-48 h-48 bg-white/10 rounded-full blur-3xl"></div>
                    <div class="absolute -left-10 -bottom-10 w-48 h-48 bg-amber-300/10 rounded-full blur-3xl"></div>
                    <div class="absolute right-24 bottom-0 w-32 h-32 bg-white/5 rounded-full blur-2xl"></div>
                </div>

                
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                    <?php
                        $lowStockVariants = \App\Models\ProductVariant::where('stock', '<', 5)->with('product')->get();
                        $pendingTransfer = \App\Models\Order::where('payment_method', '!=', 'cod')
                                            ->where('status', 'paid')
                                            ->count();
                    ?>

                    
                    <div class="bg-white dark:bg-gray-800 rounded-2xl shadow-sm border border-red-100 dark:border-red-900/30 overflow-hidden">
                        <div class="px-5 py-4 border-b border-red-100 dark:border-red-800/30" style="background: linear-gradient(135deg, #fff5f5 0%, #fff1f1 100%);">
                            <h4 class="text-red-700 dark:text-red-400 font-bold text-sm flex items-center gap-2">
                                <span class="w-7 h-7 bg-red-100 rounded-lg flex items-center justify-center">
                                    <i class="fas fa-exclamation-triangle text-red-600 text-xs"></i>
                                </span>
                                <span>Stok Kritis (< 5 item)</span>
                                <span class="ml-auto text-xs bg-red-600 text-white px-2.5 py-0.5 rounded-full font-bold">
                                    <?php echo e($lowStockVariants->count()); ?> item
                                </span>
                            </h4>
                        </div>
                        <div class="p-5 max-h-[400px] overflow-y-auto">
                            <div class="space-y-3">
                                <?php $__empty_1 = true; $__currentLoopData = $lowStockVariants; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $variant): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <div class="flex flex-col gap-2 p-3 bg-red-50 dark:bg-red-900/10 rounded-xl border border-red-100 dark:border-red-800/30">
                                        <div class="flex justify-between items-start">
                                            <a href="<?php echo e(route('products.index', ['search' => $variant->product->name])); ?>" 
                                               class="text-sm font-semibold text-gray-800 dark:text-gray-200 hover:text-amber-600 transition flex items-center gap-2">
                                                <i class="fas fa-box-open text-xs text-red-500"></i>
                                                <span class="truncate max-w-[200px]">
                                                    <?php echo e($variant->product->name); ?>

                                                    <?php if($variant->name || $variant->color): ?>
                                                        <span class="text-xs text-gray-500">(<?php echo e($variant->name ?? $variant->color); ?>)</span>
                                                    <?php endif; ?>
                                                </span>
                                            </a>
                                            <span class="text-xs px-2 py-1 bg-red-600 text-white rounded-full font-bold shrink-0">
                                                Stok: <?php echo e($variant->stock); ?>

                                            </span>
                                        </div>

                                        <form action="<?php echo e(route('products.restock', $variant->id)); ?>" method="POST" class="flex items-center gap-2 mt-1">
                                            <?php echo csrf_field(); ?>
                                            <div class="relative flex-1">
                                                <span class="absolute left-3 top-1/2 -translate-y-1/2 text-xs text-gray-400 font-bold">+</span>
                                                <input type="number" name="quantity" value="10" 
                                                       class="w-full h-9 pl-6 pr-3 text-sm font-semibold rounded-lg border-amber-200 focus:ring-amber-500 focus:border-amber-500 dark:bg-gray-700 dark:border-gray-600">
                                            </div>
                                            <button type="submit" 
                                                    class="bg-amber-600 text-white px-4 h-9 rounded-lg text-xs font-bold uppercase hover:bg-amber-700 transition shadow-sm shrink-0">
                                                Restock
                                            </button>
                                        </form>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <div class="text-center py-8">
                                        <div class="w-14 h-14 bg-emerald-100 rounded-2xl flex items-center justify-center mx-auto mb-3">
                                            <i class="fas fa-check-circle text-2xl text-emerald-500"></i>
                                        </div>
                                        <p class="text-sm text-gray-500 dark:text-gray-400 font-medium">Semua stok aman terkendali ✅</p>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>

                    
                    <div class="bg-white dark:bg-gray-800 rounded-2xl shadow-sm border border-amber-100 dark:border-amber-900/30 overflow-hidden">
                        <div class="px-5 py-4 border-b border-amber-100 dark:border-amber-800/30" style="background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);">
                            <h4 class="text-amber-700 dark:text-amber-400 font-bold text-sm flex items-center gap-2">
                                <span class="w-7 h-7 bg-amber-100 rounded-lg flex items-center justify-center">
                                    <i class="fas fa-file-invoice-dollar text-amber-600 text-xs"></i>
                                </span>
                                <span>Verifikasi Pembayaran</span>
                                <span class="ml-auto text-xs bg-amber-600 text-white px-2.5 py-0.5 rounded-full font-bold">
                                    <?php echo e($pendingTransfer); ?> pending
                                </span>
                            </h4>
                        </div>
                        <div class="p-5">
                            <?php if($pendingTransfer > 0): ?>
                                <div class="p-5 rounded-2xl text-center" style="background: linear-gradient(135deg, #fffbeb 0%, #fef9ee 100%);">
                                    <div class="w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-3" style="background: linear-gradient(135deg, #d97706 0%, #92400e 100%);">
                                        <i class="fas fa-bell text-white text-xl"></i>
                                    </div>
                                    <p class="text-amber-800 dark:text-amber-300 font-semibold text-sm">
                                        Ada <?php echo e($pendingTransfer); ?> pesanan transfer yang perlu diverifikasi!
                                    </p>
                                    <p class="text-xs text-amber-600 dark:text-amber-400 mb-4 mt-1">Segera konfirmasi pembayaran untuk memproses pesanan.</p>
                                    <a href="<?php echo e(route('orders.index', ['status' => 'paid'])); ?>" 
                                       class="inline-flex items-center gap-2 text-white px-5 py-2.5 rounded-xl text-xs font-bold uppercase hover:opacity-90 transition shadow-md" style="background: linear-gradient(135deg, #d97706 0%, #92400e 100%);">
                                        <i class="fas fa-arrow-right"></i> Proses Sekarang
                                    </a>
                                </div>
                            <?php else: ?>
                                <div class="text-center py-8">
                                    <div class="w-14 h-14 bg-emerald-100 rounded-2xl flex items-center justify-center mx-auto mb-3">
                                        <i class="fas fa-check-circle text-2xl text-emerald-500"></i>
                                    </div>
                                    <p class="text-sm text-gray-500 dark:text-gray-400 font-medium">Tidak ada pembayaran tertunda</p>
                                    <p class="text-xs text-gray-400 mt-1">Semua transaksi sudah terverifikasi</p>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>

                
                <div class="grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-5">
                    <div class="bg-white dark:bg-gray-800 p-5 rounded-2xl shadow-sm border border-gray-100 dark:border-gray-700 hover:shadow-md hover:-translate-y-0.5 transition-all duration-200">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-blue-100 dark:bg-blue-900/30 rounded-xl flex items-center justify-center">
                                <i class="fas fa-users text-blue-600 dark:text-blue-400"></i>
                            </div>
                            
                            <span class="text-2xl font-black text-gray-800 dark:text-white">
                                <?php echo e(number_format($totalUsers)); ?>

                            </span>
                        </div>
                        <p class="text-xs font-bold text-gray-500 dark:text-gray-400 uppercase tracking-wider">Total Pelanggan</p>
                        <p class="text-[10px] text-gray-400 mt-0.5">User terdaftar</p>
                    </div>
                    
                    <div class="bg-white dark:bg-gray-800 p-5 rounded-2xl shadow-sm border border-gray-100 dark:border-gray-700 hover:shadow-md hover:-translate-y-0.5 transition-all duration-200">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-amber-100 dark:bg-amber-900/30 rounded-xl flex items-center justify-center">
                                <i class="fas fa-couch text-amber-600 dark:text-amber-400"></i>
                            </div>
                            <span class="text-2xl font-black text-gray-800 dark:text-white"><?php echo e(number_format(\App\Models\Product::count())); ?></span>
                        </div>
                        <p class="text-xs font-bold text-gray-500 dark:text-gray-400 uppercase tracking-wider">Total Produk</p>
                        <p class="text-[10px] text-gray-400 mt-0.5">Koleksi furniture</p>
                    </div>
                    
                    <div class="bg-white dark:bg-gray-800 p-5 rounded-2xl shadow-sm border border-gray-100 dark:border-gray-700 hover:shadow-md hover:-translate-y-0.5 transition-all duration-200">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-orange-100 dark:bg-orange-900/30 rounded-xl flex items-center justify-center">
                                <i class="fas fa-shopping-cart text-orange-600 dark:text-orange-400"></i>
                            </div>
                            <span class="text-2xl font-black text-gray-800 dark:text-white"><?php echo e(number_format(\App\Models\Order::count())); ?></span>
                        </div>
                        <p class="text-xs font-bold text-gray-500 dark:text-gray-400 uppercase tracking-wider">Total Pesanan</p>
                        <p class="text-[10px] text-gray-400 mt-0.5">Semua transaksi</p>
                    </div>
                        
                    <div class="p-5 rounded-2xl shadow-sm border border-amber-200/60 dark:border-amber-800/30 hover:shadow-md hover:-translate-y-0.5 transition-all duration-200" style="background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fde68a 100%);">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 rounded-xl flex items-center justify-center" style="background: linear-gradient(135deg, #d97706 0%, #92400e 100%);">
                                <i class="fas fa-money-bill-wave text-white"></i>
                            </div>
                            <span class="text-lg font-black text-amber-800 dark:text-amber-400">
                                Rp<?php echo e(number_format(\App\Models\Order::whereIn('status', ['paid', 'confirmed', 'shipping', 'completed'])->sum('total_price'), 0, ',', '.')); ?>

                            </span>
                        </div>
                        <p class="text-xs font-bold text-amber-700 dark:text-amber-400 uppercase tracking-wider">Total Pendapatan</p>
                        <p class="text-[10px] text-amber-600/70 dark:text-amber-500 mt-0.5">*Dari transaksi yang sudah dibayar</p>
                    </div>
                </div>

                
                <div class="bg-white dark:bg-gray-800 rounded-2xl shadow-sm border border-amber-100/80 dark:border-gray-700 overflow-hidden">
                    <div class="px-6 py-5 border-b border-amber-100 dark:border-gray-700" style="background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);">
                        <div class="flex justify-between items-center flex-wrap gap-3">
                            <div>
                                <h3 class="font-bold text-gray-800 dark:text-white text-lg flex items-center gap-2">
                                    <span class="w-8 h-8 rounded-xl flex items-center justify-center" style="background: linear-gradient(135deg, #d97706 0%, #92400e 100%);">
                                        <i class="fas fa-truck-fast text-white text-sm"></i>
                                    </span>
                                    Pesanan Terbaru
                                </h3>
                                <p class="text-xs text-gray-500 dark:text-gray-400 mt-1">10 transaksi terakhir yang masuk</p>
                            </div>
                            <a href="<?php echo e(route('orders.index')); ?>" class="text-xs font-semibold text-amber-600 dark:text-amber-400 hover:text-amber-700 flex items-center gap-1 bg-amber-50 dark:bg-amber-900/20 px-3 py-1.5 rounded-lg border border-amber-200 dark:border-amber-800/30 transition hover:bg-amber-100">
                                Lihat Semua <i class="fas fa-arrow-right text-[10px]"></i>
                            </a>
                        </div>
                    </div>

                    <div class="overflow-x-auto">
                        <table class="w-full text-left">
                            <thead>
                                <tr class="bg-amber-50/60 dark:bg-gray-700/50">
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider">Invoice / Pelanggan</th>
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider text-center">Pembayaran</th>
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider text-center">Status</th>
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider text-right">Aksi</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-amber-50 dark:divide-gray-700">
                                <?php $__empty_1 = true; $__currentLoopData = \App\Models\Order::with('customer')->latest()->take(10)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr class="hover:bg-amber-50/40 dark:hover:bg-amber-900/10 transition">
                                        <td class="px-6 py-4">
                                            <div class="font-bold text-amber-700 dark:text-amber-400 text-sm font-mono">#<?php echo e($order->order_number); ?></div>
                                            <div class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
                                                <i class="fas fa-user mr-1"></i> <?php echo e($order->customer->name ?? 'User Terhapus'); ?>

                                            </div>
                                            <div class="text-[10px] text-gray-400 mt-1">
                                                <i class="far fa-calendar-alt mr-1"></i> <?php echo e($order->created_at->format('d/m/Y H:i')); ?>

                                            </div>
                                        </td>
                                        <td class="px-6 py-4 text-center">
                                            <?php if($order->payment_method == 'cod'): ?>
                                                <span class="inline-flex items-center gap-1 text-xs font-bold px-3 py-1.5 rounded-full bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400">
                                                    <i class="fas fa-money-bill-wave text-[10px]"></i> COD
                                                </span>
                                            <?php else: ?>
                                                <span class="inline-flex items-center gap-1 text-xs font-bold px-3 py-1.5 rounded-full bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400">
                                                    <i class="fas fa-credit-card text-[10px]"></i> Transfer
                                                </span>
                                            <?php endif; ?>
                                        </td>
                                        <td class="px-6 py-4 text-center">
                                            <?php
                                                $statusConfig = [
                                                    'pending'   => ['bg-amber-100 text-amber-700', 'fa-clock', 'Menunggu'],
                                                    'paid'      => ['bg-blue-100 text-blue-700', 'fa-credit-card', 'Dibayar'],
                                                    'confirmed' => ['bg-cyan-100 text-cyan-700', 'fa-check-circle', 'Dikonfirmasi'],
                                                    'shipping'  => ['bg-orange-100 text-orange-700', 'fa-truck', 'Dikirim'],
                                                    'completed' => ['bg-emerald-100 text-emerald-700', 'fa-check-double', 'Selesai'],
                                                    'cancelled' => ['bg-rose-100 text-rose-700', 'fa-times-circle', 'Dibatalkan'],
                                                ];
                                                $config = $statusConfig[$order->status] ?? ['bg-gray-100 text-gray-700', 'fa-question', $order->status];
                                            ?>
                                            <span class="inline-flex items-center gap-1.5 text-xs font-bold px-3 py-1.5 rounded-full <?php echo e($config[0]); ?>">
                                                <i class="fas <?php echo e($config[1]); ?> text-[10px]"></i>
                                                <?php echo e($config[2]); ?>

                                            </span>
                                        </td>
                                        <td class="px-6 py-4 text-right">
                                            <div class="flex justify-end gap-2">
                                                <?php if(in_array($order->status, ['pending', 'paid'])): ?>
                                                    <form action="<?php echo e(route('orders.confirm', $order->id)); ?>" method="POST" onsubmit="return confirm('Konfirmasi pesanan #<?php echo e($order->order_number); ?>?')" class="inline">
                                                        <?php echo csrf_field(); ?>
                                                        <button type="submit" class="bg-emerald-500 text-white px-3 py-1.5 rounded-lg text-xs font-bold hover:bg-emerald-600 transition shadow-sm">
                                                            <i class="fas fa-check mr-1"></i> ACC
                                                        </button>
                                                    </form>
                                                <?php endif; ?>
                                                <a href="<?php echo e(route('orders.show', $order->id)); ?>" 
                                                   class="inline-flex items-center gap-1 px-3 py-1.5 bg-amber-50 dark:bg-gray-700 text-amber-700 dark:text-gray-300 rounded-lg text-xs font-semibold hover:bg-amber-500 hover:text-white transition border border-amber-200 dark:border-gray-600">
                                                    <i class="fas fa-eye text-xs"></i> Detail
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="4" class="px-6 py-12 text-center">
                                            <div class="flex flex-col items-center">
                                                <div class="w-16 h-16 bg-amber-50 dark:bg-gray-700 rounded-2xl flex items-center justify-center mb-3">
                                                    <i class="fas fa-inbox text-2xl text-amber-300"></i>
                                                </div>
                                                <p class="text-gray-500 dark:text-gray-400 font-medium">Belum ada pesanan</p>
                                                <p class="text-xs text-gray-400 mt-1">Pesanan akan muncul di sini setelah ada transaksi</p>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>

                
                <div class="bg-white dark:bg-gray-800 rounded-2xl shadow-sm border border-amber-100/80 dark:border-gray-700 overflow-hidden">
                    <div class="px-6 py-5 border-b border-amber-100 dark:border-gray-700" style="background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);">
                        <h3 class="font-bold text-gray-800 dark:text-white text-lg flex items-center gap-2">
                            <span class="w-8 h-8 rounded-xl flex items-center justify-center" style="background: linear-gradient(135deg, #d97706 0%, #92400e 100%);">
                                <i class="fas fa-medal text-white text-sm"></i>
                            </span>
                            Performa Kurir
                        </h3>
                        <p class="text-xs text-gray-500 dark:text-gray-400 mt-1">Peringkat berdasarkan pesanan yang berhasil diselesaikan</p>
                    </div>

                    <div class="overflow-x-auto">
                        <table class="w-full text-left">
                            <thead>
                                <tr class="bg-amber-50/60 dark:bg-gray-700/50">
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider">Nama Kurir</th>
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider text-center">Total Selesai</th>
                                    <th class="px-6 py-4 text-xs font-bold text-amber-800/70 dark:text-gray-400 uppercase tracking-wider text-right">Efisiensi</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-amber-50 dark:divide-gray-700">
                                <?php $__empty_1 = true; $__currentLoopData = $courierStats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $courier): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr class="hover:bg-amber-50/40 dark:hover:bg-amber-900/10 transition">
                                        <td class="px-6 py-4">
                                            <div class="flex items-center gap-3">
                                                <div class="w-9 h-9 rounded-xl flex items-center justify-center text-white font-bold text-xs" style="background: linear-gradient(135deg, #d97706 0%, #92400e 100%);">
                                                    <?php echo e(strtoupper(substr($courier->name, 0, 1))); ?>

                                                </div>
                                                <div>
                                                    <div class="text-sm font-bold text-gray-800 dark:text-white"><?php echo e($courier->name); ?></div>
                                                    <div class="text-[10px] text-gray-400"><?php echo e($courier->email); ?></div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 text-center">
                                            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-black bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400">
                                                <?php echo e($courier->completed_orders_count); ?> <span class="ml-1 text-[10px] font-normal italic">pesanan</span>
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 text-right">
                                            <?php if($courier->completed_orders_count > 10): ?>
                                                <span class="text-xs font-bold text-amber-600 uppercase bg-amber-50 px-2 py-1 rounded-lg border border-amber-200">⭐ Top Performer</span>
                                            <?php else: ?>
                                                <span class="text-xs font-medium text-gray-400">Reguler</span>
                                            <?php endif; ?>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="3" class="px-6 py-8 text-center text-gray-400 text-sm">
                                            Tidak ada data kurir yang ditemukan.
                                        </td>
                                    </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH C:\laragon\www\LokaFurniture\resources\views/dashboard/admin.blade.php ENDPATH**/ ?>