coreui-generator
coreui-generator copied to clipboard
CSS of datatable not loaded
I see that CSS of datatable_css.blade.php are not loaded correctly.
In layout app.blade.php is missing the section inclusion or stack.
In datatable_body.stub:
@section('css')
@include('layouts.datatables_css')
@endsection
{!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!}
@push('scripts')
@include('layouts.datatables_js')
{!! $dataTable->scripts() !!}
@endpush
I think should be:
@push('css')
@include('layouts.datatables_css')
@endpush
...
and in app.blade.php:
...
<head>
...
@stack('css')
</head>
...
However, seem still missing some CSS even if I add this fix, see screenshot below:
Pagination has some issue too
https://infyom.com/blog/fix-datatables-css-or-datatables-js-not-found-or-failed-to-open-stream
have the same problem, any solution ??