add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch

This commit is contained in:
ludo
2024-02-04 02:51:38 +01:00
parent 067532b6fc
commit 4c6f9b3b61
39 changed files with 503 additions and 211 deletions

View File

@@ -0,0 +1,5 @@
@include('components.form.button', [
'class' => 'btn-primary ' . ($class ?? ''),
'icon' => 'fa-plus',
'title' => $title ?? 'Ajouter',
])

View 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

View File

@@ -0,0 +1,6 @@
@include('components.form.button', [
'class' => 'btn-danger btn-del ' . ($class ?? ''),
'icon' => $icon ?? 'fa-trash-alt',
'title' => $title ?? 'Effacer',
'loading_text' => "<i class='fa fa-circle-o-notch fa-spin'></i>",
])

View File

@@ -0,0 +1,5 @@
@include('components.form.button', [
'class' => 'btn-primary btn-edit ' . ($class ?? ''),
'icon' => 'fa-pencil-alt',
'title' => $title ?? 'Modifier',
])

View File

@@ -0,0 +1,6 @@
@include('components.form.button', [
'class' => 'btn-success save ' . ($class ?? ''),
'icon' => 'fa-save',
'txt' => $title ?? 'Enregister',
'loading_text' => "<i class='fa fa-spinner fa-spin'></i> En cours",
])

View File

@@ -0,0 +1,5 @@
@include('components.form.button', [
'class' => 'btn-secondary btn-show ' . ($class ?? ''),
'icon' => 'fa-eye',
'title' => $title ?? 'Voir',
])

View File

@@ -0,0 +1,8 @@
@include('components.form.button', [
'id' => $id_name ?? false,
'type' => $type ?? 'submit',
'class' => 'btn-success submit ' . ($class ?? ''),
'icon' => 'fa-save',
'txt' => __('submit'),
'loading_text' => "<i class='fa fa-spinner fa-spin'></i> Processing",
])