<?php
    // Variables for the main page
    $modal = [
        'modal' => 'attributionModalID',
        'content' => 'attributionContentModalID',
    ];
    $datatable = 'attributionDataTableID';
    $button = [
        'add' => 'attributionADD',
        'fresh' => 'attributionFresh',
    ];
?>

<?php if (isset($component)) { $__componentOriginal1d82783c246b53da9bd54777b9e76c22 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1d82783c246b53da9bd54777b9e76c22 = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\BackLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.back-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\BackLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($title),'breadcrumb' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($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-->
                    <?php if (isset($component)) { $__componentOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\Widget\SearchBar::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.widget.search-bar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\Widget\SearchBar::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d)): ?>
<?php $attributes = $__attributesOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d; ?>
<?php unset($__attributesOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d)): ?>
<?php $component = $__componentOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d; ?>
<?php unset($__componentOriginala0dd3c0b9b4e30bf9c23f44499e4cc4d); ?>
<?php endif; ?>
                    <!--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-->
                        <?php if (isset($component)) { $__componentOriginal3a7f400a655f532f87896e8e00188e98 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3a7f400a655f532f87896e8e00188e98 = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\Widget\ColumnVisibility::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.widget.column-visibility'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\Widget\ColumnVisibility::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3a7f400a655f532f87896e8e00188e98)): ?>
<?php $attributes = $__attributesOriginal3a7f400a655f532f87896e8e00188e98; ?>
<?php unset($__attributesOriginal3a7f400a655f532f87896e8e00188e98); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3a7f400a655f532f87896e8e00188e98)): ?>
<?php $component = $__componentOriginal3a7f400a655f532f87896e8e00188e98; ?>
<?php unset($__componentOriginal3a7f400a655f532f87896e8e00188e98); ?>
<?php endif; ?>
                        <!--end::colunm visibility-->

                        <!--begin::Export-->
                        <?php if (isset($component)) { $__componentOriginal723b74759ffd9f62fd7a5272810c0551 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal723b74759ffd9f62fd7a5272810c0551 = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\Widget\ExportButton::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.widget.export-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\Widget\ExportButton::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal723b74759ffd9f62fd7a5272810c0551)): ?>
<?php $attributes = $__attributesOriginal723b74759ffd9f62fd7a5272810c0551; ?>
<?php unset($__attributesOriginal723b74759ffd9f62fd7a5272810c0551); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal723b74759ffd9f62fd7a5272810c0551)): ?>
<?php $component = $__componentOriginal723b74759ffd9f62fd7a5272810c0551; ?>
<?php unset($__componentOriginal723b74759ffd9f62fd7a5272810c0551); ?>
<?php endif; ?>
                        <!--end::Export-->

                        <!--begin::Add -->
                        
                        <div class="me-0">
                            <a href="#" class="btn btn-light-primary me-3" data-kt-menu-trigger="click"
                                data-kt-menu-placement="bottom-end">
                                Attribuer un équipement
                                <i class="ki-duotone ki-down fs-2x"></i>
                            </a>
                            <!--begin::Menu 3-->
                            <div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-800 menu-state-bg-light-primary fw-semibold w-200px py-3"
                                data-kt-menu="true">
                                <!--begin::Heading-->
                                <div class="menu-item px-3">
                                    <div class="menu-content text-muted pb-2 px-3 fs-7">
                                        Type d'équipements</div>
                                </div>
                                <!--end::Heading-->
                                <!--begin::Menu item-->
                                <?php $__currentLoopData = $typeofequipments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $typeofequipment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php
                                        $cleanedString = str_replace(' ', '', $typeofequipment->name);
                                        // Remplacer les caractères spéciaux par le même caractère
                                        $name = preg_replace('/[^A-Za-z0-9\-]/', '', $cleanedString);
                                    ?>
                                    <div class="menu-item px-3">
                                        <a href="<?php echo e(route('attribution.form', [
                                            'name' => $name,
                                            'id' => $typeofequipment->id,
                                        ])); ?>"
                                            class="menu-link px-3"><?php echo e(ucfirst($typeofequipment->name)); ?></a>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <!--end::Menu item-->

                            </div>
                            <!--end::Menu 3-->
                        </div>

                        <!--end::Add -->

                        <!--begin::Refresh-->
                        <?php if (isset($component)) { $__componentOriginal4a4685752e9da9686ee2b51b98238170 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4a4685752e9da9686ee2b51b98238170 = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\Widget\RefreshButton::resolve(['fresh' => $button['fresh']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.widget.refresh-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\Widget\RefreshButton::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4a4685752e9da9686ee2b51b98238170)): ?>
<?php $attributes = $__attributesOriginal4a4685752e9da9686ee2b51b98238170; ?>
<?php unset($__attributesOriginal4a4685752e9da9686ee2b51b98238170); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4a4685752e9da9686ee2b51b98238170)): ?>
<?php $component = $__componentOriginal4a4685752e9da9686ee2b51b98238170; ?>
<?php unset($__componentOriginal4a4685752e9da9686ee2b51b98238170); ?>
<?php endif; ?>
                        <!--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="<?php echo e($datatable); ?>">
                    <thead>
                        <tr class="text-gray-800 fs-7 text-uppercase gs-0 fw-bold">
                            <th>Service</th>
                            <th>Numéro de série</th>
                            <th>Marques & Modèle</th>
                            <th>Type d'équipment</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-->
    <?php if (isset($component)) { $__componentOriginaldb163178336d47069032cff0261fe5d9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldb163178336d47069032cff0261fe5d9 = $attributes; } ?>
<?php $component = App\View\Components\Backoffice\Widget\ModalLayout::resolve(['modalID' => $modal['modal'],'modalContentID' => $modal['content'],'modalSize' => 500] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backoffice.widget.modal-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backoffice\Widget\ModalLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldb163178336d47069032cff0261fe5d9)): ?>
<?php $attributes = $__attributesOriginaldb163178336d47069032cff0261fe5d9; ?>
<?php unset($__attributesOriginaldb163178336d47069032cff0261fe5d9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldb163178336d47069032cff0261fe5d9)): ?>
<?php $component = $__componentOriginaldb163178336d47069032cff0261fe5d9; ?>
<?php unset($__componentOriginaldb163178336d47069032cff0261fe5d9); ?>
<?php endif; ?>
    <!--end::Modal - Add task-->

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1d82783c246b53da9bd54777b9e76c22)): ?>
<?php $attributes = $__attributesOriginal1d82783c246b53da9bd54777b9e76c22; ?>
<?php unset($__attributesOriginal1d82783c246b53da9bd54777b9e76c22); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1d82783c246b53da9bd54777b9e76c22)): ?>
<?php $component = $__componentOriginal1d82783c246b53da9bd54777b9e76c22; ?>
<?php unset($__componentOriginal1d82783c246b53da9bd54777b9e76c22); ?>
<?php endif; ?>
<?php /**PATH C:\laragon\www\helpdesk\resources\views/backoffice/attributions/attribution/index.blade.php ENDPATH**/ ?>