@extends('layouts.layout-admin') @section('title', 'Dashboard') @section('header_title', 'Dashboard Overview') @section('header_subtitle', 'Monitor your store performance') @section('content')
Rp {{ number_format($totalRevenue, 0, ',', '.') }}
{{ $totalOrders }}
orders{{ ucfirst($s) }}
{{ $ordersByStatus[$s] ?? 0 }}
{{ $totalProducts }}
total itemsIn Stock
{{ $productsInStock }}
Low Stock
{{ $productsLowStock }}
{{ $totalCustomers }}
registered{{ $item->total_qty }} sold
No sales data yet
@endforelse| Order Code | Customer | Items | Total | Status | Date |
|---|---|---|---|---|---|
| {{ $order->order_code }} | {{ $order->user->name }} |
@foreach ($order->items as $item)
{{ $item->product->name ?? 'Deleted' }} x {{ $item->quantity }}
@endforeach
|
Rp {{ number_format($order->total_amount, 0, ',', '.') }} | {{ ucfirst($order->status) }} | {{ $order->created_at->format('d/m/Y') }} |
| No orders yet | |||||