@extends('layouts.app') @section('content') @include('business_documents.styles')

Advance Payments Report

Back to Reports@if(auth()->user()->hasPermission('reports.export'))Export CSV@endif @if(auth()->user()->hasPermission('reports.print'))@endif
@include('cash_movements.filters',['advanceReport'=>true])
@forelse($rows as $row) @empty@endforelse
Received DateRef.BranchCustomerPurposeReceived ByMethodReceivedApplied to DateRefunded to DateAvailable Now
{{ $row->received_at->format('d M Y H:i') }}{{ $row->reference }}{{ $row->branch?->name }}{{ $row->customer?->name }}
{{ $row->customer?->phone }}
{{ $row->purpose }}{{ $row->receiver?->name }}{{ $row->paymentMethod?->name }}{{ \App\Models\SystemSetting::formatMoney($row->amount) }}{{ \App\Models\SystemSetting::formatMoney($row->used_amount) }}{{ \App\Models\SystemSetting::formatMoney($row->refunded_amount) }}{{ \App\Models\SystemSetting::formatMoney($row->remaining()) }}
No advance payments received in this period.
Filtered Totals{{ \App\Models\SystemSetting::formatMoney($totals->received) }}{{ \App\Models\SystemSetting::formatMoney($totals->applied) }}{{ \App\Models\SystemSetting::formatMoney($totals->refunded) }}{{ \App\Models\SystemSetting::formatMoney($totals->available) }}
{{ $rows->links() }}
@endsection