<!-- Date scope -->
<a
    class="filter-scope-date <?= isset($date) ? 'active' : '' ?>"
    href="javascript:;"
    data-scope-name="<?= $scope->scopeName ?>"
    data-scope-data="<?= e(json_encode([
        'date' => isset($date) ? $date : null,
        'minDate' => $scope->minDate ? $scope->minDate : '2000-01-01' ,
        'maxDate' => $scope->maxDate ? $scope->maxDate : '2099-12-31',
    ]))
    ?>">
    <span class="filter-label"><?= e(trans($scope->label)) ?>:</span>
    <span class="filter-setting"><?= isset($dateStr) ? $dateStr : e(trans('backend::lang.filter.date_all')) ?></span>
</a>
