diff --git a/resources/views/bo/pages/invoices/index.blade.php b/resources/views/bo/pages/invoices/index.blade.php index 5e60fd8..182aee5 100644 --- a/resources/views/bo/pages/invoices/index.blade.php +++ b/resources/views/bo/pages/invoices/index.blade.php @@ -4,90 +4,84 @@ @section('description', __('Liste de tous les :model', ['model' => __('models.classes.invoices')])) @section('content') -
- @include('breadcrumbs.breadcrumb-body') -
-
- + @foreach (\App\Enums\Invoices\InvoiceStatusEnum::toArray() as $invoiceStatusEnum) + + @endforeach + + @push('scripts') + + @endpush + + + +
+
+
+ @include('bo.modules.search-bar') + + @if (count($invoiceModels) > 0) + + @include('bo.modules.table-col-sorter', [ + 'cols' => [ + 'ref' => Str::ucfirst(__('validation.attributes.ref')), + 'object' => Str::ucfirst(__('validation.attributes.object')), + 'sent_client_date' => Str::ucfirst(__('validation.attributes.sent_client_date')), + 'signed_date' => Str::ucfirst(__('validation.attributes.signed_date')), + 'sent_accounting_date' => Str::ucfirst(__('validation.attributes.sent_accounting_date')), + 'site_id' => Str::ucfirst(Str::singular(__('validation.attributes.sites'))), + 'updated_at' => Str::ucfirst(__('validation.attributes.updated_at')), + ], + ]) + + + @foreach ($invoiceModels as $invoiceModel) + + + + + + + + + + @endforeach - - @push('scripts') - - @endpush - - - - - - -@include('bo.modules.search-bar') -
{{ $invoiceModel->ref }}{{ $invoiceModel->object }}{{ $invoiceModel->signed_date }}{{ $invoiceModel->sent_client_date }}{{ $invoiceModel->sent_accounting_date }}{{ $invoiceModel->site->name }}{{ $invoiceModel->updated_at }} + +
- @if (count($invoiceModels) > 0) - - @include('bo.modules.table-col-sorter', [ - 'cols' => [ - 'ref' => Str::ucfirst(__('validation.attributes.ref')), - 'object' => Str::ucfirst(__('validation.attributes.object')), - 'sent_client_date' => Str::ucfirst(__('validation.attributes.sent_client_date')), - 'signed_date' => Str::ucfirst(__('validation.attributes.signed_date')), - 'site_id' => Str::ucfirst(Str::singular(__('validation.attributes.sites'))), - 'updated_at' => Str::ucfirst(__('validation.attributes.updated_at')), - ], - ]) - - - @foreach ($invoiceModels as $invoiceModel) - - - - - - - - - - @endforeach - - @else - - - - @endif -
{{ $invoiceModel->ref }}{{ $invoiceModel->object }}{{ $invoiceModel->signed_date }}{{ $invoiceModel->sent_client_date }}{{ $invoiceModel->site->name }}{{ $invoiceModel->updated_at }} - -
{{ __('crud.other.no_model_found', ['model' => __('models.classes.invoices')]) }}
-{!! $invoiceModels->links() !!} + + @else + + {{ __('crud.other.no_model_found', ['model' => __('models.classes.invoices')]) }} + + @endif + + {!! $invoiceModels->links() !!} @endsection