✏️ 编辑:dashboard.blade.php
路径:
/home/boguraj1/.trash/resources/views/admin/dashboard.blade.php
大小:4.93 KB · 修改:2026-07-23 16:13:46 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
@extends('layouts.admin') @section('title', 'Dashboard') @section('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">{{ $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">{{ $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">{{ $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">{{ $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">৳{{ 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">{{ $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="{{ 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> @forelse($recent_orders as $order) <tr> <td class="px-4"><a href="{{ route('admin.orders.show', $order) }}" class="fw-semibold text-decoration-none" style="color:var(--primary)">{{ $order->order_number }}</a></td> <td>{{ $order->name }}</td> <td>{{ $order->mobile }}</td> <td><span class="badge bg-light text-dark border">{{ $order->items->count() }}</span></td> <td class="fw-semibold">৳{{ number_format($order->total, 0) }}</td> <td><span class="badge bg-{{ $order->status_badge }}">{{ ucfirst($order->status) }}</span></td> <td class="text-muted" style="font-size:12px">{{ $order->created_at->format('d M Y') }}</td> <td><a href="{{ route('admin.orders.show', $order) }}" class="btn btn-sm btn-outline-secondary"><i class="bi bi-eye"></i></a></td> </tr> @empty <tr><td colspan="8" class="text-center py-5 text-muted">No orders yet.</td></tr> @endforelse </tbody> </table> </div> </div> </div> @endsection
💾 保存
取消
保存为 UTF-8,换行统一为 LF