add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch
This commit is contained in:
17
resources/views/components/form/buttons/cancel.blade.php
Normal file
17
resources/views/components/form/buttons/cancel.blade.php
Normal file
@@ -0,0 +1,17 @@
|
||||
@include('components.form.button', [
|
||||
'class' => 'btn-secondary cancel ' . ($class ?? ''),
|
||||
'icon' => 'fa-times',
|
||||
'txt' => $title ?? 'Annuler',
|
||||
])
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('.form-buttons .cancel').click(function() {
|
||||
@if (isset($url))
|
||||
window.location = "{{ $url }}";
|
||||
@else
|
||||
window.history.back();
|
||||
@endif
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user