관리-도구
편집 파일: 56c9d824e822f974c2bc6ec7d32c801e1c9898e3.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('Update Category')); ?></span> </div> <div class="card-body"> <form action="<?php echo e(action('CategoryController@destroy', $category['id'])); ?>" method="post"> <?php echo e(csrf_field()); ?> <input name="_method" type="hidden" value="DELETE"> <button class="btn btn-danger float-right btn-remove" type="submit"><i class="far fa-trash-alt"></i> <?php echo e(_lang('Delete')); ?></button> </form> <form method="post" class="form-horizontal validate" autocomplete="off" action="<?php echo e(action('CategoryController@update', $id)); ?>" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <input name="_method" type="hidden" value="PATCH"> <div class="row"> <div class="col-md-6"> <div class="form-group row"> <label class="col-md-3 col-form-label"><?php echo e(_lang('Name')); ?></label> <div class="col-md-9"> <input type="text" class="form-control" name="name" value="<?php echo e($category->translation->name); ?>" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-form-label"><?php echo e(_lang('Parent Category')); ?></label> <div class="col-md-9"> <select class="form-control auto-select" data-selected="<?php echo e($category->parent_id); ?>" name="parent_id"> <option value=""><?php echo e(_lang('Select Category')); ?></option> <?php echo e(buildOptionTree(\App\Entity\Category\Category::all(), 0, $category->id, 0, -1, 1)); ?> </select> </div> </div> <div class="form-group row"> <label class="col-md-3 col-form-label"><?php echo e(_lang('Description')); ?></label> <div class="col-md-9"> <textarea class="form-control" name="description"><?php echo e($category->translation->description); ?></textarea> </div> </div> <div class="form-group row"> <label class="col-md-3 col-form-label"><?php echo e(_lang('Logo')); ?></label> <div class="col-md-9"> <button type="button" class="choose-media btn btn-light" data-media-type="image" data-input-name="files[logo]"> <i class="fa fa-folder-open m-r-5"></i> <?php echo e(_lang('Browse')); ?> </button> <div class="image-container"> <?php if(isset($category->logo->pivot)): ?> <div class="image"> <img src="<?php echo e(asset('storage/app/'. $category->logo->file_path)); ?>"> <input type="hidden" name="files[logo]" value="<?php echo e($category->logo->pivot->media_id); ?>"> <i class="remove-media fas fa-times"></i> </div> <?php endif; ?> </div> </div> </div> <div class="form-group row"> <label class="col-md-3 col-form-label"><?php echo e(_lang('Banner')); ?></label> <div class="col-md-9"> <button type="button" class="choose-media btn btn-light" data-media-type="image" data-input-name="files[banner]"> <i class="fa fa-folder-open m-r-5"></i> <?php echo e(_lang('Browse')); ?> </button> <div class="image-container"> <?php if(isset($category->banner->pivot)): ?> <div class="image"> <img src="<?php echo e(asset('storage/app/'. $category->banner->file_path)); ?>"> <input type="hidden" name="files[banner]" value="<?php echo e($category->banner->pivot->media_id); ?>"> <i class="remove-media fas fa-times"></i> </div> <?php endif; ?> </div> </div> </div> <div class="form-group row"> <div class="col-md-9 offset-md-3"> <button type="submit" class="btn btn-primary"><?php echo e(_lang('Update')); ?></button> </div> </div> </div> </div> </form> </div> </div> </div> </div> <?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/product/category/edit.blade.php ENDPATH**/ ?>