39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<div class="row mb-3">
|
|
<div class="col">
|
|
<h4>
|
|
<x-form.buttons.button-add id="add_payment" class="btn-xs" />
|
|
Règlements
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
@if ($payments ?? false)
|
|
@foreach ($payments as $payment)
|
|
@endforeach
|
|
@endif
|
|
|
|
@push('js')
|
|
<script>
|
|
$('#add_payment').click(function() {
|
|
InvoicePaymentCreate();
|
|
});
|
|
|
|
function InvoicePaymentCreate() {
|
|
var url_open = "{{ route('Admin.Shop.InvoicePayments.create') }}";
|
|
var url_save = "{{ route('Admin.Shop.InvoicePayments.store') }}";
|
|
openModal("Ajouter un paiement", '#invoice_payment-form', url_open, url_save,
|
|
"InvoicePaymentRefresh();");
|
|
}
|
|
|
|
function InvoicePaymentEdit(id) {
|
|
var url_open = "{{ route('Admin.Shop.InvoicePayments.edit') }}/" + id;
|
|
var url_save = "{{ route('Admin.Shop.InvoicePayments.store') }}";
|
|
openModal("Editer un paiement", '#invoice_payment-form', url_open, url_save,
|
|
"InvoicePaymentRefresh();");
|
|
}
|
|
|
|
function InvoicePaymentRefresh() {
|
|
|
|
}
|
|
</script>
|
|
@endpush
|