@include('admin.header') @section('title', 'Payment Allocations') @section('actions') Allocate Payment View Payments @endsection @section('content')
Payment Allocations to Factories
@foreach($allocations as $allocation) @endforeach
Reference Buyer Factory Order Amount Allocation Date Purpose Actions
{{ $allocation->reference_number }} {{ $allocation->advancePayment->buyer->company_name }} {{ $allocation->factory->name }} {{ $allocation->orderConfirmation->order_number }} ${{ number_format($allocation->amount, 2) }} {{ $allocation->allocation_date->format('M d, Y') }} {{ Str::limit($allocation->purpose, 50) }}
@csrf @method('DELETE')
{{ $allocations->links() }}
Total Allocations

{{ $allocations->total() }}

This Page Amount

${{ number_format($allocations->sum('amount'), 2) }}

Total Factories

{{ $allocations->unique('factory_id')->count() }}

@include('admin.footer')