@extends('layouts.app') @section('title','My Orders | Shopora') @section('content')
{{-- Sidebar --}}

Hello,

{{ $user->name }}

{{-- Main Content --}}

My Orders

@if($orders->count())
@foreach($orders as $order)
Order #{{ $order->order_number }} | Placed on {{ $order->created_at->format('d M Y') }}
Manage
@foreach($order->items->take(2) as $item)
@if($item->product && $item->product->images && is_array($item->product->images) && count($item->product->images) > 0) {{ $item->product->name }} @else 🛍️ @endif

{{ $item->product_name }}

Qty: {{ $item->quantity }}
{{ $order->status }}
@endforeach @if($order->items->count() > 2)

+ {{ $order->items->count() - 2 }} more items

@endif
@endforeach
{{ $orders->links() }}
@else

No orders yet

Continue Shopping
@endif
@endsection