@extends('layouts.dashboard') @section('title', $pageTitle ?? 'Create Payment') @section('page_header') @endsection @section('page_content') @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
Selection
@if (($selectedCompanyId ?? null) && ($selectedPartyId ?? null) && ($selectedParty ?? null))
{{ $summary['heading_1'] ?? 'Value 1' }}
{{ number_format((float) ($summary['value_1'] ?? 0), 2) }}
{{ $summary['heading_2'] ?? 'Value 2' }}
{{ number_format((float) ($summary['value_2'] ?? 0), 2) }}
{{ $summary['heading_3'] ?? 'Value 3' }}
{{ number_format((float) ($summary['value_3'] ?? 0), 2) }}
@if (($selectedFlow ?? '') === 'agent_payment') Commission References @else Invoice References @endif
@forelse ($referenceRows as $row) @empty @endforelse
Reference Date Total Paid Outstanding Status Invoice View
{{ $row['ref'] ?? '-' }} {{ $row['date'] ?? '-' }} {{ number_format((float) ($row['total'] ?? 0), 2) }} {{ number_format((float) ($row['paid'] ?? 0), 2) }} {{ number_format((float) ($row['outstanding'] ?? 0), 2) }} {{ ucfirst((string) ($row['status'] ?? '-')) }} @if (! empty($row['invoice_url'])) View Invoice @else - @endif
No references found for selected party.
Add Entry
@csrf
@endif @endsection @push('scripts') @endpush