<label for="filterjourneylistdate" class="form-label"><?php echo lang("Localize.date") ?> <abbr title="Required field">*</abbr></label>
<?php 
    $role_id = session()->get('role_id');
    $startDateAttr = (!in_array((int)$role_id, [1, 7])) ? '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>