@php
    $clientEditPattern = str_replace('/0/edit', '/__ID__/edit', route('admin.customers.edit', ['customer' => 0]));
@endphp
<script type="application/json" id="billing-clients-json">@json($clientsJson ?? [])</script>
<script>
    window.__billingClients = @json($clientsJson ?? []);
    window.__billingClientOptions = @json($clientPickerOptions ?? []);
    window.__billingClientQuickStore = @json(route('admin.customers.quick-store'));
    window.__billingClientEditPattern = @json($clientEditPattern);
    window.__billingCsrf = @json(csrf_token());
</script>
<script src="{{ asset('js/client-picker.js') }}"></script>
<script src="{{ asset('js/quick-client-modal.js') }}"></script>
