<?php if($input['type'] == 'flatpickr' ): ?>
    <?php if($input['time'] == 'yes'): ?>
        <div class="form-group">
            <label for="<?php echo e($input['id']); ?>" class="<?php echo e($input['required'] ?? ''); ?> form-label"><?php echo e($input['label']); ?></label>
            <input type="time" min="00:00" <?php if(isset($input['readonly'])): ?> readonly <?php endif; ?> max="23:59" class="form-control form-control-lg form-control-solid <?php echo e($input['class'] ?? ''); ?>" id="<?php echo e($input['id']); ?>" name="<?php echo e($input['name']); ?>" value="<?php echo e($input['value']=='' ? date('H').':00' : $input['value']); ?>" <?php echo $input['other']; ?> autocomplete="off"></input>
        </div>

        <?php else: ?>
        <div class="form-group">
            <label for="<?php echo e($input['id']); ?>" class="<?php echo e($input['required'] ?? ''); ?> form-label"><?php echo e($input['label']); ?></label>
            <?php if($input['type'] == 'password'): ?>
                <div class="pt-1 mb-3">
                    <?php if($input['generate'] ?? false): ?>
                        <button type="button" class="btn btn-dark btn-sm ms-1 generatePassword" data-length="<?php echo e($input['length'] ?? 8); ?>"><i class="fas fa-key"></i> توليد كلمة مرور</button>
                    <?php endif; ?>
                    <?php if($input['show'] ?? false): ?>
                        <button type="button" class="btn btn-dark btn-sm showPassword" data-show="true"><i class="fas fa-eye"></i> <span>إظهار كلمة المرور</span></button>
                    <?php endif; ?>
                </div>
            <?php endif; ?>

            <input type="<?php echo e($input['type']); ?>" <?php if(isset($input['readonly'])): ?> readonly <?php endif; ?> class="form-control form-control-lg form-control-solid <?php echo e($input['class'] ?? ''); ?>" id="<?php echo e($input['id']); ?>" name="<?php echo e($input['name']); ?>" value="<?php echo e($input['value']); ?>" placeholder="<?php echo e($input['placeholder']); ?>" <?php echo $input['type'] == 'flatpickr'&& !isset($input['readonly']) ? 'data-flatpickr="true" data-date="'.$input['date'].'" data-time="'.$input['time'].'" data-format="'.$input['format'].'"' : ''; ?> <?php echo $input['other']; ?> autocomplete="off"/>

            <?php if($input['type'] == 'password'): ?>
                <?php if($input['confirm'] != ''): ?>
                    <label for="<?php echo e($input['confirm']); ?>" class="<?php echo e($input['required'] ?? ''); ?> form-label mt-7">تأكيد <?php echo e($input['label']); ?></label>
                    <input type="<?php echo e($input['type']); ?>" <?php if(isset($input['readonly'])): ?> readonly <?php endif; ?> class="form-control form-control-lg form-control-solid <?php echo e($input['class'] ?? ''); ?>" id="<?php echo e($input['confirm']); ?>" name="<?php echo e($input['confirm']); ?>" value="<?php echo e($input['value']); ?>" placeholder="تأكيد <?php echo e($input['placeholder']); ?>" <?php echo $input['other']; ?> autocomplete="off"/>
                <?php endif; ?>
            <?php endif; ?>
        </div>

    <?php endif; ?>
<?php else: ?>
<div class="form-group">
    <label for="<?php echo e($input['id']); ?>" class="<?php echo e($input['required'] ?? ''); ?> form-label"><?php echo e($input['label']); ?></label>
    <?php if($input['type'] == 'password'): ?>
        <div class="pt-1 mb-3">
            <?php if($input['generate'] ?? false): ?>
                <button type="button" class="btn btn-dark btn-sm ms-1 generatePassword" data-length="<?php echo e($input['length'] ?? 8); ?>"><i class="fas fa-key"></i> توليد كلمة مرور</button>
            <?php endif; ?>
            <?php if($input['show'] ?? false): ?>
                <button type="button" class="btn btn-dark btn-sm showPassword" data-show="true"><i class="fas fa-eye"></i> <span>إظهار كلمة المرور</span></button>
            <?php endif; ?>
        </div>
    <?php endif; ?>

    <input type="<?php echo e($input['type']); ?>" <?php if(isset($input['readonly'])): ?> readonly <?php endif; ?> class="form-control form-control-lg form-control-solid <?php echo e($input['class'] ?? ''); ?>" id="<?php echo e($input['id']); ?>" name="<?php echo e($input['name']); ?>" value="<?php echo e($input['value']); ?>" placeholder="<?php echo e($input['placeholder']); ?>" <?php echo ($input['type'] == 'flatpickr' && !isset($input['readonly'])) ? 'data-flatpickr="true" data-date="'.$input['date'].'" data-time="'.$input['time'].'" data-format="'.$input['format'].'"' : ''; ?> <?php echo $input['other']; ?> autocomplete="off"/>

    <?php if($input['type'] == 'password'): ?>
        <?php if($input['confirm'] != ''): ?>
            <label for="<?php echo e($input['confirm']); ?>" class="<?php echo e($input['required'] ?? ''); ?> form-label mt-7">تأكيد <?php echo e($input['label']); ?></label>
            <input type="<?php echo e($input['type']); ?>" <?php if(isset($input['readonly'])): ?> readonly <?php endif; ?> class="form-control form-control-lg form-control-solid <?php echo e($input['class'] ?? ''); ?>" id="<?php echo e($input['confirm']); ?>" name="<?php echo e($input['confirm']); ?>" value="<?php echo e($input['value']); ?>" placeholder="تأكيد <?php echo e($input['placeholder']); ?>" <?php echo $input['other']; ?> autocomplete="off"/>
        <?php endif; ?>
    <?php endif; ?>
</div>

<?php endif; ?>
<?php
    // $reload = "".asset('assets/js/reload.js').'?version='.config('app.version')."";
?>

<?php /**PATH /Users/haladigitally/Desktop/TR/operations_manager/resources/views/form/input.blade.php ENDPATH**/ ?>