관리-도구
편집 파일: 016f0ee0c1e51984b97f30084bda609aeb8fc4a6.php
<?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"> <span class="panel-title"><?php echo e(_lang('Add Navigation Item')); ?></span> </div> <div class="card-body"> <form method="post" class="validate" autocomplete="off" action="<?php echo e(route('navigation_items.store',$navigation_id)); ?>" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Name')); ?></label> <input type="text" class="form-control" name="name" value="<?php echo e(old('name')); ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Navigation Type')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e(old('type','page')); ?>" id="navigation_type" name="type" required> <option value='page'><?php echo e(_lang('Page')); ?></option> <option value='category'><?php echo e(_lang('Category')); ?></option> <option value='dynamic_url'><?php echo e(_lang('Dynamic URL')); ?></option> <option value='custom_url'><?php echo e(_lang('Custom URL')); ?></option> </select> </div> </div> <div class="col-md-6" id="page"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Page')); ?> <span class="required"> *</span></label> <select class="form-control select2 auto-select" data-selected="<?php echo e(old('page_id')); ?>" name="page_id"> <option value=""><?php echo e(_lang('Select Page')); ?></option> <?php $__currentLoopData = \App\Entity\Page\Page::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($page->id); ?>"><?php echo e($page->translation->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-6 d-none" id="category"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Category')); ?> <span class="required"> *</span></label> <select class="form-control select2 auto-select" data-selected="<?php echo e(old('category_id')); ?>" name="category_id"> <option value="">-- <?php echo e(_lang('Select Category')); ?> --</option> <?php echo e(buildOptionTree(\App\Entity\Category\Category::all(), 0, null, 0, -1)); ?> </select> </div> </div> <div class="col-md-6 d-none" id="url"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('URL')); ?> <span class="required"> *</span></label> <input type="text" class="form-control" name="url" value="<?php echo e(old('url')); ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Icon')); ?></label> <input type="text" class="form-control" name="icon" value="<?php echo e(old('icon')); ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Target')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e(old('target','_self')); ?>" name="target" required> <option value="_self"><?php echo e(_lang('Same Window')); ?></option> <option value="_blank"><?php echo e(_lang('New Window')); ?></option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('CSS Class')); ?></label> <input type="text" class="form-control" name="css_class" value="<?php echo e(old('css_class')); ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('CSS ID')); ?></label> <input type="text" class="form-control" name="css_id" value="<?php echo e(old('css_id')); ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Status')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e(old('status',1)); ?>" name="status" required> <option value="1"><?php echo e(_lang('Active')); ?></option> <option value="0"><?php echo e(_lang('In Active')); ?></option> </select> </div> </div> <div class="col-md-12"> <div class="form-group"> <button type="submit" class="btn btn-primary"><?php echo e(_lang('Save')); ?></button> </div> </div> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="<?php echo e(asset('public/backend/assets/js/navigation.js')); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/customamgdigital/saintsaccessories.custom.amgdigitalagency.com/resources/views/backend/site_navigation/navigation_item/create.blade.php ENDPATH**/ ?>