<h1 class="mb-5"><?php echo e($name); ?></h1>
<?php if($verif): ?>
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.noData','data' => []]); ?>
<?php $component->withName('noData'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php else: ?>
        <table class="table table-bordered" id="market-tab">
            <thead>
            <tr class="bg-primary text-white">
                <?php
                    $fields = [
                        'libelle_marche' => 'Libellé marché',
                        'segment' => 'Famille',
                        'montant_ht' => 'Montant HT'
                    ];
                ?>
                <?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field => $display): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $url = url()->current() . '?' . http_build_query(array_merge(request()->except('sort_by', 'sort_order'), ['sort_by' => $field, 'sort_order' => ($sortField === $field && $sortOrder === 'asc') ? 'desc' : 'asc']));
                        $urlWithFragment = $url . '#market-tab';
                    ?>
                    <th scope="col"><?php echo e($display); ?>

                        <a class="ml-2"
                           href="<?php echo e($urlWithFragment); ?>">
                            <?php if($sortField === $field): ?>
                                <?php if($sortOrder === 'asc'): ?>
                                    <i class="fas fa-sort-down text-white"></i>
                                <?php else: ?>
                                    <i class="fas fa-sort-up text-white"></i>
                                <?php endif; ?>
                            <?php else: ?>
                                <i class="fas fa-sort text-white"></i>
                            <?php endif; ?>
                        </a>
                    </th>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tr>
            </thead>
            <tbody>
            <?php $__currentLoopData = $marketsByAmount['marketByAmount']->items(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $marketByAmount): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($marketByAmount->libelle_marche); ?></td>
                    <th scope="row"><?php echo e($marketByAmount->segment); ?></th>
                    <td><?php echo e(number_format($marketByAmount->montant_ht, 2, ',', ' ')); ?> €</td>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    <?php echo e($marketsByAmount['marketByAmount']->appends(request()->except('marketByAmount'))->fragment('market-tab')->links()); ?>

    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.saveAsExcel','data' => ['data' => $marketsByAmount['allData'],'nameFile' => 'Marchés par montant']]); ?>
<?php $component->withName('saveAsExcel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($marketsByAmount['allData']),'nameFile' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Marchés par montant')]); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>

    <script>

        document.getElementById('selectMarketLimit').addEventListener('change', function () {
            document.getElementById('paginationMarketForm').submit();
        });

    </script>
<?php endif; ?>

<?php /**PATH /var/www/html/resources/views/components/charts/marketByAmountTab.blade.php ENDPATH**/ ?>