@php
    // Variables for the main page
    $modal = [
        'modal' => 'fuelTypeModalID',
        'content' => 'fuelTypeContentModalID',
    ];
    $datatable = 'fuelTypeDataTableID';
    $button = [
        'add' => 'fuelTypeADD',
        'fresh' => 'fuelTypeFresh',
    ];
@endphp

<x-backoffice.back-layout :title="$title" :breadcrumb="$breadcrumb">

    <!--begin::Container-->
    <div id="kt_content_container" class="container-xxl">
        <!--begin::Card-->
        <div class="card">
            <!--begin::Card header-->
            <div class="card-header border-0 pt-6">
                <!--begin::Card title-->
                <div class="card-title">
                    <!--begin::Search-->
                    <x-backoffice.widget.search-bar />
                    <!--end::Search-->
                </div>
                <!--begin::Card title-->
                <!--begin::Card toolbar-->
                <div class="card-toolbar">

                    <!--begin::Toolbar-->
                    <div class="d-flex justify-content-end">

                        <!--begin::colunm visibility-->
                        <x-backoffice.widget.column-visibility />
                        <!--end::colunm visibility-->

                        <!--begin::Export-->
                        <x-backoffice.widget.export-button />
                        <!--end::Export-->

                        <!--begin::Add -->
                        <x-backoffice.widget.open-modal-button :addBTN="$button['add']" :modalTarget="$modal['modal']">Ajouter un type de carburant</x-backoffice.widget.open-modal-button>

                        <!--end::Add -->

                        <!--begin::Refresh-->
                        <x-backoffice.widget.refresh-button :fresh="$button['fresh']" />
                        <!--end::Refresh-->

                    </div>
                    <!--end::Toolbar-->
                </div>
                <!--end::Card toolbar-->
            </div>
            <!--end::Card header-->
            <!--begin::Card body-->
            <div class="card-body py-4">
                <!--begin::Table-->
                <table class="table align-middle table-row-solid fs-6 gy-2" id="{{ $datatable }}">
                    <thead>
                        <tr class="text-gray-800 fs-7 text-uppercase gs-0 fw-bold">
                            <th class="min-w-500px">Type de carburant</th>
                            <th class="text-center min-w-100px">Actions</th>
                        </tr>
                    <tbody class="text-gray-600 fw-semibold"></tbody>
                </table>
                <!--end::Table-->
            </div>
            <!--end::Card body-->
        </div>
        <!--end::Card-->
    </div>
    <!--end::Container-->

    <!--begin::Modal - Add task-->
    <x-backoffice.widget.modal-layout :modalID="$modal['modal']" :modalContentID="$modal['content']" :modalSize="500" />
    <!--end::Modal - Add task-->

</x-backoffice.back-layout>
