👁 查看:2b7d05fc401072cae17a867e15d199688ec3b805.php
路径:/home/boguraj1/.trash/storage/framework/views/2b7d05fc401072cae17a867e15d199688ec3b805.php
大小:5.65 KB · 修改:2026-07-23 16:31:12 · 权限:0644 · 可写
<?php $__env->startSection('title', 'Dashboard'); ?>
<?php $__env->startSection('content'); ?>
<div class="row g-4 mb-4">
<div class="col-sm-6 col-xl-3">
<div class="stat-card" style="background:linear-gradient(135deg,#e63946,#c1121f)">
<div class="d-flex justify-content-between align-items-center">
<div>
<div style="font-size:12px;opacity:.8;font-weight:600;text-transform:uppercase">Total Orders</div>
<div style="font-size:32px;font-weight:800"><?php echo e($stats['total_orders']); ?></div>
</div>
<i class="bi bi-bag-check" style="font-size:36px;opacity:.4"></i>
</div>
<div class="mt-2" style="font-size:12px;opacity:.75">
<span class="badge bg-white text-danger"><?php echo e($stats['pending_orders']); ?> Pending</span>
</div>
</div>
</div>
<div class="col-sm-6 col-xl-3">
<div class="stat-card" style="background:linear-gradient(135deg,#457b9d,#1d3557)">
<div class="d-flex justify-content-between align-items-center">
<div>
<div style="font-size:12px;opacity:.8;font-weight:600;text-transform:uppercase">Total Products</div>
<div style="font-size:32px;font-weight:800"><?php echo e($stats['total_products']); ?></div>
</div>
<i class="bi bi-box-seam" style="font-size:36px;opacity:.4"></i>
</div>
<div class="mt-2" style="font-size:12px;opacity:.75"><?php echo e($stats['total_categories']); ?> categories</div>
</div>
</div>
<div class="col-sm-6 col-xl-3">
<div class="stat-card" style="background:linear-gradient(135deg,#2d9c5f,#1a7a44)">
<div class="d-flex justify-content-between align-items-center">
<div>
<div style="font-size:12px;opacity:.8;font-weight:600;text-transform:uppercase">Revenue</div>
<div style="font-size:28px;font-weight:800">৳<?php echo e(number_format($stats['total_revenue'], 0)); ?></div>
</div>
<i class="bi bi-currency-exchange" style="font-size:36px;opacity:.4"></i>
</div>
<div class="mt-2" style="font-size:12px;opacity:.75">Confirmed orders</div>
</div>
</div>
<div class="col-sm-6 col-xl-3">
<div class="stat-card" style="background:linear-gradient(135deg,#f4a261,#e76f51)">
<div class="d-flex justify-content-between align-items-center">
<div>
<div style="font-size:12px;opacity:.8;font-weight:600;text-transform:uppercase">Blog Posts</div>
<div style="font-size:32px;font-weight:800"><?php echo e($stats['total_blog']); ?></div>
</div>
<i class="bi bi-pencil-square" style="font-size:36px;opacity:.4"></i>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<span><i class="bi bi-bag-check me-2" style="color:var(--primary)"></i>Recent Orders</span>
<a href="<?php echo e(route('admin.orders.index')); ?>" class="btn btn-sm btn-outline-danger">View All</a>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table mb-0">
<thead>
<tr>
<th class="px-4">Order #</th>
<th>Customer</th>
<th>Mobile</th>
<th>Items</th>
<th>Total</th>
<th>Status</th>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__empty_1 = true; $__currentLoopData = $recent_orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr>
<td class="px-4"><a href="<?php echo e(route('admin.orders.show', $order)); ?>" class="fw-semibold text-decoration-none" style="color:var(--primary)"><?php echo e($order->order_number); ?></a></td>
<td><?php echo e($order->name); ?></td>
<td><?php echo e($order->mobile); ?></td>
<td><span class="badge bg-light text-dark border"><?php echo e($order->items->count()); ?></span></td>
<td class="fw-semibold">৳<?php echo e(number_format($order->total, 0)); ?></td>
<td><span class="badge bg-<?php echo e($order->status_badge); ?>"><?php echo e(ucfirst($order->status)); ?></span></td>
<td class="text-muted" style="font-size:12px"><?php echo e($order->created_at->format('d M Y')); ?></td>
<td><a href="<?php echo e(route('admin.orders.show', $order)); ?>" class="btn btn-sm btn-outline-secondary"><i class="bi bi-eye"></i></a></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr><td colspan="8" class="text-center py-5 text-muted">No orders yet.</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\back\resources\views/admin/dashboard.blade.php ENDPATH**/ ?>