<div>

    
    <div class="mb-6">
        <h1 class="text-2xl font-bold text-slate-800">Dashboard</h1>
        <p class="text-sm text-slate-500 mt-0.5">
            Halo, <span class="font-medium text-slate-700"><?php echo e(auth()->user()->name); ?></span>! —
            <?php echo e(now()->translatedFormat('l, d F Y')); ?>

        </p>
    </div>

    
    <div class="grid grid-cols-2 lg:grid-cols-5 gap-4 mb-8">

        
        <div class="bg-white rounded-xl border border-slate-200 p-4 hover:border-slate-300 transition-colors">
            <div class="flex items-start justify-between mb-3">
                <div class="w-9 h-9 bg-blue-50 rounded-lg flex items-center justify-center">
                    <?php if (isset($component)) { $__componentOriginald5dcfefa1bd397da70b3e8652c3e12ee = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald5dcfefa1bd397da70b3e8652c3e12ee = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.cube','data' => ['class' => 'w-5 h-5 text-blue-600']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon.cube'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5 text-blue-600']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald5dcfefa1bd397da70b3e8652c3e12ee)): ?>
<?php $attributes = $__attributesOriginald5dcfefa1bd397da70b3e8652c3e12ee; ?>
<?php unset($__attributesOriginald5dcfefa1bd397da70b3e8652c3e12ee); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald5dcfefa1bd397da70b3e8652c3e12ee)): ?>
<?php $component = $__componentOriginald5dcfefa1bd397da70b3e8652c3e12ee; ?>
<?php unset($__componentOriginald5dcfefa1bd397da70b3e8652c3e12ee); ?>
<?php endif; ?>
                </div>
            </div>
            <p class="text-2xl font-bold text-slate-800"><?php echo e(number_format($stats['total_produk'])); ?></p>
            <p class="text-xs text-slate-500 mt-0.5">Produk Aktif</p>
        </div>

        
        <div class="bg-white rounded-xl border border-slate-200 p-4 hover:border-slate-300 transition-colors">
            <div class="flex items-start justify-between mb-3">
                <div class="w-9 h-9 bg-purple-50 rounded-lg flex items-center justify-center">
                    <?php if (isset($component)) { $__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.shopping-bag','data' => ['class' => 'w-5 h-5 text-purple-600']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon.shopping-bag'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5 text-purple-600']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1)): ?>
<?php $attributes = $__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1; ?>
<?php unset($__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1)): ?>
<?php $component = $__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1; ?>
<?php unset($__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1); ?>
<?php endif; ?>
                </div>
            </div>
            <p class="text-2xl font-bold text-slate-800"><?php echo e(number_format($stats['total_pesanan'])); ?></p>
            <p class="text-xs text-slate-500 mt-0.5">Total Pesanan</p>
        </div>

        
        <div class="bg-white rounded-xl border border-slate-200 p-4 hover:border-slate-300 transition-colors">
            <div class="flex items-start justify-between mb-3">
                <div class="w-9 h-9 bg-green-50 rounded-lg flex items-center justify-center">
                    <?php if (isset($component)) { $__componentOriginal4e4f522adb19cc742fb2b199df7e6c95 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4e4f522adb19cc742fb2b199df7e6c95 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.users','data' => ['class' => 'w-5 h-5 text-green-600']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon.users'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5 text-green-600']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4e4f522adb19cc742fb2b199df7e6c95)): ?>
<?php $attributes = $__attributesOriginal4e4f522adb19cc742fb2b199df7e6c95; ?>
<?php unset($__attributesOriginal4e4f522adb19cc742fb2b199df7e6c95); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4e4f522adb19cc742fb2b199df7e6c95)): ?>
<?php $component = $__componentOriginal4e4f522adb19cc742fb2b199df7e6c95; ?>
<?php unset($__componentOriginal4e4f522adb19cc742fb2b199df7e6c95); ?>
<?php endif; ?>
                </div>
            </div>
            <p class="text-2xl font-bold text-slate-800"><?php echo e(number_format($stats['total_customer'])); ?></p>
            <p class="text-xs text-slate-500 mt-0.5">Customer</p>
        </div>

        
        <div class="bg-white rounded-xl border border-slate-200 p-4 hover:border-slate-300 transition-colors">
            <div class="flex items-start justify-between mb-3">
                <div class="w-9 h-9 bg-amber-50 rounded-lg flex items-center justify-center">
                    <?php if (isset($component)) { $__componentOriginal592e07866628a2032a88f28d47e45f91 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal592e07866628a2032a88f28d47e45f91 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.building-storefront','data' => ['class' => 'w-5 h-5 text-amber-600']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon.building-storefront'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5 text-amber-600']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal592e07866628a2032a88f28d47e45f91)): ?>
<?php $attributes = $__attributesOriginal592e07866628a2032a88f28d47e45f91; ?>
<?php unset($__attributesOriginal592e07866628a2032a88f28d47e45f91); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal592e07866628a2032a88f28d47e45f91)): ?>
<?php $component = $__componentOriginal592e07866628a2032a88f28d47e45f91; ?>
<?php unset($__componentOriginal592e07866628a2032a88f28d47e45f91); ?>
<?php endif; ?>
                </div>
            </div>
            <p class="text-2xl font-bold text-slate-800"><?php echo e(number_format($stats['total_mitra'])); ?></p>
            <p class="text-xs text-slate-500 mt-0.5">Mitra Aktif</p>
        </div>

        
        <div class="col-span-2 lg:col-span-1 bg-orange-500 rounded-xl p-4">
            <div class="flex items-start justify-between mb-3">
                <div class="w-9 h-9 bg-white/20 rounded-lg flex items-center justify-center">
                    <?php if (isset($component)) { $__componentOriginal1a2aab62646bbf4070a26cfe0540f0d4 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1a2aab62646bbf4070a26cfe0540f0d4 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.banknotes','data' => ['class' => 'w-5 h-5 text-white']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon.banknotes'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-5 h-5 text-white']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1a2aab62646bbf4070a26cfe0540f0d4)): ?>
<?php $attributes = $__attributesOriginal1a2aab62646bbf4070a26cfe0540f0d4; ?>
<?php unset($__attributesOriginal1a2aab62646bbf4070a26cfe0540f0d4); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1a2aab62646bbf4070a26cfe0540f0d4)): ?>
<?php $component = $__componentOriginal1a2aab62646bbf4070a26cfe0540f0d4; ?>
<?php unset($__componentOriginal1a2aab62646bbf4070a26cfe0540f0d4); ?>
<?php endif; ?>
                </div>
            </div>
            <p class="text-2xl font-bold text-white">
                Rp <?php echo e(number_format($stats['pendapatan_hari_ini'], 0, ',', '.')); ?>

            </p>
            <p class="text-xs text-orange-100 mt-0.5">Pendapatan Hari Ini</p>
        </div>

    </div>

    
    <div class="bg-white rounded-xl border border-slate-200">
        <div class="flex items-center justify-between px-5 py-4 border-b border-slate-100">
            <h2 class="font-semibold text-slate-800">Pesanan Terbaru</h2>
            <a href="<?php echo e(route('admin.pesanan')); ?>"
               class="text-sm text-orange-600 hover:text-orange-700 font-medium">
                Lihat semua →
            </a>
        </div>

        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($recentOrders->isEmpty()): ?>
            <div class="px-5 py-12 text-center">
                <?php if (isset($component)) { $__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.shopping-bag','data' => ['class' => 'w-10 h-10 text-slate-300 mx-auto mb-2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon.shopping-bag'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-10 h-10 text-slate-300 mx-auto mb-2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1)): ?>
<?php $attributes = $__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1; ?>
<?php unset($__attributesOriginalc43f195f1b3468dd3dad13eb2914c8e1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1)): ?>
<?php $component = $__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1; ?>
<?php unset($__componentOriginalc43f195f1b3468dd3dad13eb2914c8e1); ?>
<?php endif; ?>
                <p class="text-sm text-slate-400">Belum ada pesanan masuk.</p>
            </div>
        <?php else: ?>
            <div class="divide-y divide-slate-50">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $recentOrders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="flex items-center justify-between px-5 py-3.5 hover:bg-slate-50 transition-colors">
                        <div class="flex items-center gap-3">
                            <div class="w-8 h-8 rounded-full bg-slate-100 flex items-center justify-center shrink-0">
                                <span class="text-xs font-bold text-slate-600">
                                    <?php echo e(strtoupper(substr($order->customer_name, 0, 1))); ?>

                                </span>
                            </div>
                            <div>
                                <p class="text-sm font-medium text-slate-700"><?php echo e($order->order_number); ?></p>
                                <p class="text-xs text-slate-400">
                                    <?php echo e($order->customer_name); ?> · <?php echo e($order->created_at->diffForHumans()); ?>

                                </p>
                            </div>
                        </div>
                        <div class="flex items-center gap-3">
                            <span class="text-sm font-semibold text-slate-700">
                                Rp <?php echo e(number_format($order->grand_total, 0, ',', '.')); ?>

                            </span>
                            <?php
                                $color = match($order->status->value) {
                                    'pending'    => 'yellow',
                                    'paid'       => 'blue',
                                    'processing' => 'purple',
                                    'delivering' => 'cyan',
                                    'completed'  => 'green',
                                    'cancelled'  => 'red',
                                    default      => 'zinc',
                                };
                            ?>
                            <?php if (isset($component)) { $__componentOriginal4cc377eda9b63b796b6668ee7832d023 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4cc377eda9b63b796b6668ee7832d023 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::badge.index','data' => ['color' => $color,'size' => 'sm']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::badge'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($color),'size' => 'sm']); ?>
                                <?php echo e($order->status->label()); ?>

                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4cc377eda9b63b796b6668ee7832d023)): ?>
<?php $attributes = $__attributesOriginal4cc377eda9b63b796b6668ee7832d023; ?>
<?php unset($__attributesOriginal4cc377eda9b63b796b6668ee7832d023); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4cc377eda9b63b796b6668ee7832d023)): ?>
<?php $component = $__componentOriginal4cc377eda9b63b796b6668ee7832d023; ?>
<?php unset($__componentOriginal4cc377eda9b63b796b6668ee7832d023); ?>
<?php endif; ?>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>

    
    <div class="mt-6 grid grid-cols-2 sm:grid-cols-4 gap-3">
        <?php
            $quickLinks = [
                ['label' => 'Tambah Produk',   'route' => 'admin.produk',    'icon' => 'plus-circle',   'color' => 'blue'],
                ['label' => 'Verifikasi Bayar', 'route' => 'admin.pembayaran','icon' => 'banknotes',     'color' => 'green'],
                ['label' => 'Lihat Pesanan',   'route' => 'admin.pesanan',   'icon' => 'shopping-bag',  'color' => 'purple'],
                ['label' => 'Kelola Mitra',    'route' => 'admin.mitra',     'icon' => 'building-storefront', 'color' => 'amber'],
            ];
        ?>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $quickLinks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <a href="<?php echo e(route($link['route'])); ?>"
               class="flex items-center gap-3 bg-white border border-slate-200 rounded-xl px-4 py-3 hover:border-slate-300 hover:bg-slate-50 transition-colors">
                <?php if (isset($component)) { $__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::icon.index','data' => ['name' => $link['icon'],'class' => 'w-5 h-5 text-slate-500']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($link['icon']),'class' => 'w-5 h-5 text-slate-500']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2)): ?>
<?php $attributes = $__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2; ?>
<?php unset($__attributesOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2)): ?>
<?php $component = $__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2; ?>
<?php unset($__componentOriginalc7d5f44bf2a2d803ed0b55f72f1f82e2); ?>
<?php endif; ?>
                <span class="text-sm font-medium text-slate-700"><?php echo e($link['label']); ?></span>
            </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>

</div>
<?php /**PATH C:\laragon\www\titipin-babe\resources\views/livewire/admin/dashboard.blade.php ENDPATH**/ ?>