@include('admin.header') @section('title', 'Advance Payment Details') Back to Payments Edit @if($advancePayment->canAllocate()) Allocate to Factory @endif
Payment Details
Reference Number {{ $advancePayment->reference_number }}
Buyer {{ $advancePayment->buyer->contact_person }}
Order Confirmation {{ $advancePayment->orderConfirmation->order_number ?? 'N/A' }}
Amount ${{ number_format($advancePayment->amount, 2) }}
Payment Date {{ $advancePayment->payment_date->format('M d, Y') }}
Payment Method {{ $advancePayment->payment_method }}
Transaction ID {{ $advancePayment->transaction_id ?? 'N/A' }}
Status {{ ucfirst($advancePayment->status) }}
Allocated Amount ${{ number_format($advancePayment->allocated_amount, 2) }}
Remaining Amount ${{ number_format($advancePayment->remaining_amount, 2) }}
Created By {{ $advancePayment->creator->name }}
Created At {{ $advancePayment->created_at->format('M d, Y H:i') }}
@if($advancePayment->remarks)
{{ $advancePayment->remarks }}
@endif
@if($advancePayment->allocations->count() > 0)
Payment Allocations
@foreach($advancePayment->allocations as $allocation) @endforeach
Reference Factory Order Amount Date Purpose Actions
{{ $allocation->reference_number }} {{ $allocation->factory->name }} {{ $allocation->orderConfirmation->order_number }} ${{ number_format($allocation->amount, 2) }} {{ $allocation->allocation_date->format('M d, Y') }} {{ Str::limit($allocation->purpose, 50) }}
@endif
Buyer Information
{{ $advancePayment->buyer->company_name }}
  • Contact: {{ $advancePayment->buyer->contact_person }}
  • Email: {{ $advancePayment->buyer->email }}
  • Phone: {{ $advancePayment->buyer->phone }}
  • Address: {{ $advancePayment->buyer->address }}
View Buyer Ledger
@if($advancePayment->orderConfirmation)
Order Information
{{ $advancePayment->orderConfirmation->order_number }}
  • Quantity: {{ number_format($advancePayment->orderConfirmation->confirmed_quantity) }}
  • Price: ${{ number_format($advancePayment->orderConfirmation->confirmed_price, 2) }}
  • Delivery: {{ $advancePayment->orderConfirmation->formatted_delivery_date }}
  • Status: {{ ucfirst($advancePayment->orderConfirmation->status) }}
@endif
@include('admin.footer')