@extends('layouts.user') @section('title', 'Dashboard') @section('content')

Dashboard

{{ currency_code() }} ({{ currency_symbol() }})

Total Orders

{{ $stats['total_orders'] }}

Total Spent

{{ currency($stats['total_spent']) }}

{{ $stats['total_spent_idr'] ?? 'Rp 0' }}

Pending Orders

{{ $stats['pending_orders'] }}

Cashback

{{ currency($stats['cashback'] ?? 0) }}

Recent Orders

@foreach($orders as $order) @endforeach
Order # Date Total Status
{{ $order->order_number }} {{ $order->created_at->format('d/m/Y') }} {{ currency($order->total) }} {{ ucfirst($order->status) }} View
@endsection