<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">

                    <h4 class="card-title"><?php echo e($headertext); ?></h4>
                    <p class="card-title-desc">
                        لطفا اطلاعات فیلد را وارد نمایید
                    </p>

                    <form action="<?php echo e(route('admin.factoraddfild')); ?>" method="post">
                        <?php echo csrf_field(); ?>
                        <div class="form-group row">
                            <label for="example-text-input" class="col-md-2 col-form-label">نام فیلد</label>
                            <div class="col-md-10">
                                <input class="form-control text-center" value="<?php echo e(old(key: 'name')); ?>" type="text"
                                    name="name" placeholder="حقوق پایه" id="example-text-input">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="example-text-input" class="col-md-2 col-form-label">نوع</label>
                            <div class="col-md-10">
                                <select name="type" style="text-align: center" class="form-control">
                                    <option value="1">عدد</option>
                                    <option value="2">متن</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="example-text-input" class="col-md-2 col-form-label">وضعیت</label>
                            <div class="col-md-10">
                                <select name="status" style="text-align: center" class="form-control">
                                    <option value="1">مزایا</option>
                                    <option value="2">کسورات</option>
                                </select>
                            </div>
                        </div>


                        <button type="submit" class="btn btn-success waves-effect waves-light"
                            style="width: 100%">افزودن</button>
                        <br><br>
                        <?php if($errors->any()): ?>
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="alert alert-danger" role="alert">
                                    <?php echo e($error); ?>

                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>


                        <?php if(session()->has('message')): ?>
                            <div class="alert alert-success" role="alert">
                                <?php echo e(session()->get('message')); ?>

                            </div>
                        <?php endif; ?>

                </div>
                </form>
            </div>
        </div>
        <!-- end col -->
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/ali/pakanbakhtar/pakanbakhtar/resources/views/admin/factors/addfild.blade.php ENDPATH**/ ?>