@if(request()->boolean('dialog'))

Invoice {{ $sale->invoice_no }} · {{ $sale->customer_name ?: 'Walk In' }}

@endif @forelse($payments as $payment) @php($options = $methods->where('id', '!=', $payment->payment_method_id))
{{ \App\Models\SystemSetting::formatMoney($payment->amount) }} · {{ $payment->paymentMethod->name }}

{{ \Illuminate\Support\Carbon::parse($payment->payment_date)->format('d M Y H:i') }}@if($payment->reference_no) · Ref. {{ $payment->reference_no }}@endif

@if($options->isNotEmpty())
@csrf @method('PATCH') @php($retry = (int) old('form_payment_id') === $payment->id)
@if(request()->boolean('dialog'))@endif
@else

No other active payment method is available for this branch.

@endif
@empty
There are no editable payments on this invoice.
@endforelse