<?php
$input = @$input ?? [
        [
            'type' => 'select',
            'name' => 'input',
            'value' => '',
            'option' => [],
            'title' => 'title',
            'rows' => 2,
            'class' => '',
            'required'
        ]
    ];
?>

<?php Fun::lang() ?>
<div class="col-sm-12 col-xs-12">
    <?php $__currentLoopData = $input; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if($item): ?>
            <?php
            $check_select = $item['type'] === 'select';
            $check_ta = $item['type'] === 'textarea';
            $check_file = $item['type'] === 'file';
            $check_password = $item['type'] === 'password';
            ?>
            <?php if($item['type']==='hr'): ?>
                <div class="form-group col-sm-12 col-xs-12 col-md-12 col-lg-12">
                    <h2><?php echo e(__('administrator.'.$item['title'])); ?></h2>
                    <hr>
                </div>
            <?php else: ?>
                <div class="form-group col-sm-12 col-xs-12 col-md-12 col-lg-12">
                    <div class="col-sm-4 col-xs-12 col-md-4 col-lg-4">
                        <label for="name" class="<?php echo e(@$item['required']); ?>"><?php echo e(__('administrator.'.$item['title'])); ?></label>
                    </div>
                    <div class="col-sm-8 col-xs-12 col-md-8 col-lg-8">
                        <?php if($check_select): ?>
                            <?php echo Form::select($item['name'],$item['option'],@$item['value']??null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2 '.@$item['class'])); ?>

                        <?php elseif($check_file): ?>
                            <?php echo Form::file($item['name'],@$item['value']??null, array('placeholder'=>__('administrator.'.$item['title']),'class' => 'form-control '.@$item['class'])); ?>

                        <?php elseif($check_ta): ?>
                            <?php echo Form::textarea($item['name'],@$item['value']??null, array('placeholder'=>__('administrator.'.$item['title']),'class' => 'form-control '.@$item['class'],'rows'=>@$item['rows'])); ?>

                        <?php elseif($check_password): ?>
                            <?php echo Form::password($item['name'], array('class' => 'form-control '.@$item['class'],'placeholder'=>__('administrator.'.$item['title']))); ?>

                        <?php else: ?>
                            <?php echo Form::text($item['name'],@$item['value']??null, array('placeholder'=>__('administrator.'.$item['title']),'class' => ('form-control '.@$item['class']))); ?>

                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php if(request('input_name')): ?>
    <?php echo Form::hidden('input_name',request('input_name')); ?>

<?php endif; ?>

<?php echo Form::submit('text', ['class' => 'submit_ display-none' ]); ?>

<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/component/form-component.blade.php ENDPATH**/ ?>