 <?php
    use App\Helpers\Form as FormTemplate;
    use App\Helpers\Template;

    $formInputAttr = config('zvn.template.form_input');
    $formLabelAttr = config('zvn.template.form_label');

    $statusValue      = ['default' => 'Select status', 'active' => config('zvn.template.status.active.name'), 'inactive' => config('zvn.template.status.inactive.name')];

    $parentValue      = ['default' => 'Select parent'];
    foreach ($parents as $key => $value) {
        $parentValue[$value["id"]]      = $value["name"];
    }

    $inputHiddenID    = Form::hidden('id', @$item['id']);

    $elements = [
        [
            'label'   => Form::label('name', 'Name', $formLabelAttr),
            'element' => Form::text('name', @$item['name'], $formInputAttr )
        ],
        [
            'label'   => Form::label('status', 'Parent id', $formLabelAttr),
            'element' => Form::select('parent_id', $parentValue, @$item['parent_id'], $formInputAttr)
        ],
        [
            'label'   => Form::label('status', 'Status', $formLabelAttr),
            'element' => Form::select('status', $statusValue, @$item['status'], $formInputAttr)
        ],
        [
            'element' => $inputHiddenID . Form::submit('Save', ['class'=>'btn btn-success']),
            'type'    => "btn-submit"
        ]
    ];
?> <?php $__env->startSection('content'); ?> <?php echo $__env->make('admin.templates.page_header', ['pageIndex' => false], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.templates.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <?php echo $__env->make('admin.templates.x_title', ['title' => 'Form'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="x_content"> <?php echo e(Form::open([ 'method' => 'POST', 'url' => route("$controllerName/save"), 'accept-charset' => 'UTF-8', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal form-label-left', 'id' => 'main-form' ])); ?> <?php echo FormTemplate::show($elements); ?> <?php echo e(Form::close()); ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\offline_laravel_duongle\resources\views/admin/pages/nestedcategory/form.blade.php ENDPATH**/ ?>