@php $payment = $payment ?? null; $isEdit = (bool) $payment; $formAction = $isEdit ? route('admin.payments.update', $payment) : route('admin.payments.store'); @endphp
@push('scripts') @if($isReceived) @php $clientsJson = $customersJson ?? []; $clientEditPattern = str_replace('/0/edit', '/__ID__/edit', route('admin.customers.edit', ['customer' => 0])); @endphp @endif @endpush