@extends('frontend.layouts.app') @push('style') @endpush @section('content')

Welcome {{user()->name}}

@include('frontend.components.user-account-sidebar')
@if ($orders->isEmpty())

No orders found.

@else @foreach ($orders as $order) @endforeach
Order Id Order Date Amount Status Details
{{ $order->id }} {{ $order->created_at->format('d M Y') }} ${{ number_format($order->total_price, 2) }} {{ ucfirst($order->status) }}
@foreach ($order->orderDetails as $detail) @endforeach
Product Name Quantity Price
{{ $detail->product->name }} {{ $detail->quantity }} ${{ number_format($detail->price, 2) }}
@endif
@endsection @push('style') @endpush