@extends('material.layouts.app') @section('content')
{{ $title ?? 'Orders ' }} table
@foreach ($orders as $order) @php $owner = $order->laundry?->owner; $currency = $owner?->appSetting?->business_currency ?? 'NGN'; @endphp @endforeach
User Business Amount Date Status
@if ($owner)
{{ $owner->name }}

{{ $owner->email }}

@else
Unknown Owner

N/A

@endif

{{ $owner?->appSetting?->business_name ?? ($order->laundry?->name ?? 'N/A') }}

{{ $currency }}{{ number_format($order->total_amount, 2) }}

{{ $order->created_at->format('d F Y') }}

{{ $order->status }}

@if ($owner) @endif
{{ $orders->links() }}
@endsection