{{-- Customer Document Types listing — docs/wireframes-v12/customer-doc-type.html, content region for content region. booking_types/index.blade.php is this page's twin and carries the long form of the shape they share: one card, the module icon and the primary action in its `.card-header`, and **no filter bar and no search input** because the wireframe draws neither (CR-7 §1, §4). Read it first. One column more than the twin — the `.tag-wrap` pills of applicable booking types — and one thing the twin's dialogs do not have: the modals' checkbox list, which needs the booking types the controller passes in as `$bookingTypes`. That is the only page-only payload in either module, which makes this the only place the recipe's "skip it on an ajax draw" rule has anything to skip; CustomerDocTypeController::index() does the skipping. The column list exists in exactly one place: CustomerDocTypesDataTable::getColumns(). --}} @extends('layouts.app') @section('title', __('customer_doc_types.title')) @section('breadcrumbs') {{-- Home / Administration / Customer Document Types, the wireframe's own — and note the full spelling here against the sidebar's "Customer Doc Types", which is also the wireframe's. --}} @endsection @section('content')
{{-- v12 writes the icon's colour and 8px margin inline (line 162); `.card-header-icon` is those two declarations as a rule. --}}
{{ __('customer_doc_types.title') }}
@can('create', \App\Models\CustomerDocType::class) @endcan
{!! $dataTable->table(['class' => 'data-table']) !!}
@include('customer_doc_types.partials.modals') {{-- The shared row-delete confirmation (CR-16 item J8). At the END of the content section and outside every `.card`, for the clipping reason the partial's own header records. It also pushes the toaster and the shared delete client, which is why the row buttons need nothing of their own. --}} @include('partials.ajax-delete-modal') @endsection @push('styles') @endpush @push('scripts') {{-- Order is load bearing: jQuery (already in the layout) → core library → the Bootstrap 5 integration → yajra's init. --}} {!! $dataTable->scripts() !!} {{-- The same shared module the booking types listing loads (CR-7 decision D4). The checkbox list is the half of it this page uses and the twin does not; everything else is identical, which is the whole reason there is one file. --}} @endpush