@section('title', 'Reports')
@section('top-menu-items')
| Payment Date | Customer Company | Order # | Wp Order Id | Order Date | Order Total | Payment Amount | Outstanding Balance | |||
|---|---|---|---|---|---|---|---|---|---|---|
| @foreach($order->on_account_payments ?? [] as $payment) {{ \Carbon\Carbon::parse($payment?->pivot?->created_at)->format('Y-m-d H:i') ?? '--' }} @endforeach | {{ $order->orderable?->partner?->organization_name ?? 'Cash Customer' }} | {{ $order->id }} | {{ $order->wp_order_id }} | {{ \Carbon\Carbon::parse($order->created_at)->format('Y-m-d') }} | {{ $order->total_price + $order->taxes + $order->discount ?? 0.00 }} | {{ ($order->on_account_payments ?? collect())->sum('pivot.amount') ?? 'N/A' }} | ${{ number_format(($order->total_price + $order->taxes + $order->discount) - ($order->paid ?? 0), 2) }} | |||
| No Orders found. | ||||||||||