Purchase Details

Back to List @if($purchase->payment_status !== 'Paid') Edit @endif
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
@foreach($purchase->purchaseDetails as $detail) @endforeach
Product Quantity Price Subtotal
{{ $detail->product_name }} {{ $detail->quantity }} {{ number_format($detail->price, 2) }} {{ number_format($detail->sub_total, 2) }}
Payment History
@forelse($purchase->purchasePayments as $payment) @empty @endforelse
Date Amount Method Note Created By
{{ $payment->created_at->format('d/m/Y H:i') }} {{ number_format($payment->amount, 2) }} {{ $payment->payment_method }} {{ $payment->note }} {{ $payment->created_by }}
No payments found.
@if($purchase->payment_status !== 'Paid')
Add Payment
@error('payment_amount') {{ $message }} @enderror
@error('payment_method') {{ $message }} @enderror
@error('payment_note') {{ $message }} @enderror
@endif
@if (session()->has('message')) @endif @if (session()->has('error')) @endif