Purchase Information
Reference No |
{{ $purchase->reference_no }} |
Date |
{{ $purchase->date->format('d/m/Y') }} |
Supplier |
{{ $purchase->supplier->name }} |
Created By |
{{ $purchase->created_by }} |
Payment Information
Total Amount |
{{ number_format($purchase->total_amount, 2) }} |
Paid Amount |
{{ number_format($purchase->paid_amount, 2) }} |
Due Amount |
{{ $purchase->due_amount ? number_format($purchase->due_amount, 2) : '0.00' }} |
Payment Status |
{{ $purchase->payment_status }}
|
Purchase Details
Product |
Quantity |
Price |
Subtotal |
@foreach($purchase->purchaseDetails as $detail)
{{ $detail->product_name }} |
{{ $detail->quantity }} |
{{ number_format($detail->price, 2) }} |
{{ number_format($detail->sub_total, 2) }} |
@endforeach
Payment History
Date |
Amount |
Method |
Note |
Created By |
@forelse($purchase->purchasePayments as $payment)
{{ $payment->created_at->format('d/m/Y H:i') }} |
{{ number_format($payment->amount, 2) }} |
{{ $payment->payment_method }} |
{{ $payment->note }} |
{{ $payment->created_by }} |
@empty
No payments found. |
@endforelse
@if($purchase->payment_status !== 'Paid')
@endif