<label for="filterjourneylistdate" class="form-label"><?php echo lang("Localize.date") ?> <abbr title="Required field">*</abbr></label>
<?php
    $rolepermissionLibrary = new \App\Libraries\Rolepermission();
    $canBackdateJourneyList = ((int) session()->get('role_id') === 1)
        || $rolepermissionLibrary->read('journey_list_backdated');
    $startDateAttr = !$canBackdateJourneyList ? 'data-date-start-date="0d"' : '';
?>
<div class="input-append date datepicker" id="filterjourneylistdate" data-date-format="yyyy-mm-dd" <?php echo $startDateAttr; ?>>
    <input size="16" type="text" name="filterjourneylistdate" class="form-control" value="<?php echo empty($filterjourneydate) ? date('Y-m-d') : $filterjourneydate; ?>" required readonly />
    <span class="add-on"><i class="icon-th"></i></span>
</div>