<?php $__env->startSection('title'); ?>
    <?php echo e(trans_choice('general.add',1)); ?> <?php echo e(trans_choice('general.custom_field',1)); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <!-- Default box -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><?php echo e(trans_choice('general.add',1)); ?> <?php echo e(trans_choice('general.custom_field',1)); ?></h3>

            <div class="box-tools pull-right">

            </div>
        </div>
        <form method="post" action="<?php echo e(url('custom_field/store')); ?>" class="form-horizontal"
              enctype="multipart/form-data">
            <?php echo e(csrf_field()); ?>

            <div class="box-body">
                <div class="form-group">
                    <label for="category"
                           class="control-label col-md-3"><?php echo e(trans_choice('general.category',1)); ?></label>
                    <div class="col-md-9">
                        <select name="category" class="form-control select2" id="category" required>
                            <option value="clients"><?php echo e(trans_choice('general.client',2)); ?></option>
                            <option value="groups"><?php echo e(trans_choice('general.group',2)); ?></option>
                            <option value="loans"><?php echo e(trans_choice('general.loan',2)); ?></option>
                            <option value="savings"><?php echo e(trans_choice('general.savings',2)); ?></option>
                            <option value="offices"><?php echo e(trans_choice('general.office',2)); ?></option>
                            <option value="users"><?php echo e(trans_choice('general.user',2)); ?></option>
                            <option value="expenses"><?php echo e(trans_choice('general.expense',2)); ?></option>
                            <option value="other_income"><?php echo e(trans_choice('general.other_income',2)); ?></option>
                            <option value="repayments"><?php echo e(trans_choice('general.repayment',2)); ?></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="name"
                           class="control-label col-md-3"><?php echo e(trans_choice('general.name',1)); ?></label>
                    <div class="col-md-9">
                        <input type="text" name="name" class="form-control"
                               value="<?php echo e(old('name')); ?>"
                               required id="name">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3"><?php echo e(trans_choice('general.required',1)); ?></label>
                    <div class="col-md-9">
                        <label><input type="radio" name="required" required value="0"
                                      checked> <?php echo e(trans_choice('general.no',1)); ?>

                        </label>
                        <label><input type="radio" name="required" required
                                      value="1"> <?php echo e(trans_choice('general.yes',1)); ?>

                        </label>
                    </div>
                </div>
                <h4><?php echo e(trans_choice('general.field',1)); ?> <?php echo e(trans_choice('general.type',1)); ?> </h4>
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <th width="150">&nbsp;</th>
                        <th><?php echo e(trans_choice('general.description',1)); ?></th>
                        <th><?php echo e(trans_choice('general.allowed_value',2)); ?></th>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="textfield"
                                           required="">
                                    <b><?php echo e(trans_choice('general.text_field',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td><?php echo e(trans_choice('general.text_field_description',1)); ?></td>
                        <td><?php echo e(trans_choice('general.any_value',1)); ?></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="date" required="">
                                    <b><?php echo e(trans_choice('general.date_field',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td><?php echo e(trans_choice('general.date_field_description',1)); ?></td>
                        <td><?php echo e(trans_choice('general.only_date',1)); ?></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="number" required="">
                                    <b><?php echo e(trans_choice('general.number_field',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td><?php echo e(trans_choice('general.number_field_description',1)); ?></td>
                        <td><?php echo e(trans_choice('general.only_number',1)); ?></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="decimal"
                                           required="">
                                    <b><?php echo e(trans_choice('general.decimal_field',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td><?php echo e(trans_choice('general.decimal_field_description',1)); ?></td>
                        <td><?php echo e(trans_choice('general.only_decimal',1)); ?></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="textarea"
                                           required="">
                                    <b><?php echo e(trans_choice('general.textarea',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td><?php echo e(trans_choice('general.textarea_description',1)); ?></td>
                        <td><?php echo e(trans_choice('general.any_value',1)); ?></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="radiobox"
                                           required="">
                                    <b><?php echo e(trans_choice('general.radio_box',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td colspan="2">
                            <p><?php echo e(trans_choice('general.separate_with_comma',1)); ?></p>
                            <input type="text" name="radio_box_values" class="form-control" id="radio_box_values"
                                   placeholder="Option 1, Option 2">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="checkbox"
                                           required="">
                                    <b><?php echo e(trans_choice('general.checkbox',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td colspan="2">
                            <p><?php echo e(trans_choice('general.separate_with_comma',1)); ?></p>
                            <input type="text" name="checkbox_values" class="form-control" id="checkbox_values"
                                   placeholder="Option 1, Option 2">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="field_type" id="inputType" value="select" required="">
                                    <b><?php echo e(trans_choice('general.select',1)); ?></b>

                                </label>
                            </div>
                        </td>
                        <td colspan="2">
                            <p><?php echo e(trans_choice('general.separate_with_comma',1)); ?></p>
                            <input type="text" name="select_values" class="form-control" id="select_values"
                                   placeholder="Option 1, Option 2">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!-- /.box-body -->
            <div class="box-footer">
                <div class="heading-elements">
                    <button type="submit" class="btn btn-primary pull-right"><?php echo e(trans_choice('general.save',1)); ?></button>
                </div>
            </div>
        </form>
    </div>
    <!-- /.box -->
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ic026402/public_html/cres/resources/views/custom_field/create.blade.php ENDPATH**/ ?>