{{-- resources/views/purchases/suppliers/statement.blade.php --}} @extends('layouts.app') @section('title', 'Supplier Statement — ' . $supplier->name) @section('page_title', 'Supplier Statement') @section('page_subtitle', $supplier->name) @section('content')
← Supplier Profile
{{-- Summary --}}
${{ number_format($totalOrdered, 2) }}
Total Ordered
${{ number_format($totalPaid, 2) }}
Total Paid
${{ number_format($outstanding, 2) }}
Outstanding
{{-- Orders --}}
Purchase Orders
@if($orders->isEmpty())

No orders yet

@else
@foreach($orders as $order) @endforeach
PO # Date Total Paid Balance Status
{{ $order->po_number }} {{ $order->order_date->format('d M Y') }} {{ $order->currency }} {{ number_format($order->total_amount, 2) }} {{ $order->currency }} {{ number_format($order->amount_paid, 2) }} @if($order->balance_due > 0) {{ $order->currency }} {{ number_format($order->balance_due, 2) }} @else Paid @endif {{ str_replace('_', ' ', $order->status) }}
@endif
{{-- Payments --}} @if($payments->count() > 0)
Payment History
@foreach($payments as $payment) @endforeach
Reference Method Amount Date
{{ $payment->reference }} {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} {{ $payment->currency }} {{ number_format($payment->amount, 2) }} {{ $payment->paid_at->format('d M Y') }}
@endif @endsection