Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelcafediretodope.meumercado.app
/
storage
/
framework
/
views
/
Editing: e98587ab36ef76a689c56ff016b5927bb171c676.php
<?php $__env->startSection('title', translate('Update banner')); ?> <?php $__env->startPush('css_or_js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row align-items-center"> <div class="col-sm mb-2 mb-sm-0"> <h1 class="page-header-title"><i class="tio-edit"></i> <?php echo e(\App\CentralLogics\translate('update')); ?> <?php echo e(\App\CentralLogics\translate('banner')); ?></h1> </div> </div> </div> <!-- End Page Header --> <div class="row gx-2 gx-lg-3"> <div class="col-sm-12 col-lg-12 mb-3 mb-lg-2"> <form action="<?php echo e(route('admin.banner.update',[$banner['id']])); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('put'); ?> <div class="row"> <div class="col-6"> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('title')); ?></label> <input type="text" name="title" value="<?php echo e($banner['title']); ?>" class="form-control" placeholder="<?php echo e(translate('New banner')); ?>" required> </div> </div> <div class="col-6"> <div class="form-group"> <label class="input-label" for="exampleFormControlSelect1"><?php echo e(\App\CentralLogics\translate('item')); ?> <?php echo e(\App\CentralLogics\translate('type')); ?><span class="input-label-secondary">*</span></label> <select name="item_type" class="form-control" onchange="show_item(this.value)"> <option value="product" <?php echo e($banner['product_id']==null?'':'selected'); ?>><?php echo e(\App\CentralLogics\translate('product')); ?></option> <option value="category" <?php echo e($banner['category_id']==null?'':'selected'); ?>><?php echo e(\App\CentralLogics\translate('category')); ?></option> </select> </div> </div> </div> <div class="row"> <div class="col-6"> <div class="form-group"> <label><?php echo e(\App\CentralLogics\translate('banner')); ?> <?php echo e(\App\CentralLogics\translate('image')); ?></label><small style="color: red">* ( <?php echo e(\App\CentralLogics\translate('ratio')); ?> 3:1 )</small> <div class="custom-file"> <input type="file" name="image" id="customFileEg1" class="custom-file-input" accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*"> <label class="custom-file-label" for="customFileEg1"><?php echo e(\App\CentralLogics\translate('choose')); ?> <?php echo e(\App\CentralLogics\translate('file')); ?></label> </div> <hr> <center> <img style="width: 80%;border: 1px solid; border-radius: 10px;" id="viewer" src="<?php echo e(asset('storage/app/public/banner')); ?>/<?php echo e($banner['image']); ?>" alt="banner image"/> </center> </div> </div> <div class="col-6"> <div class="form-group" id="type-product" style="display: <?php echo e($banner['product_id']==null?'none':'block'); ?>"> <label class="input-label" for="exampleFormControlSelect1"><?php echo e(\App\CentralLogics\translate('product')); ?> <span class="input-label-secondary">*</span></label> <select name="product_id" class="form-control js-select2-custom"> <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($product['id']); ?>" <?php echo e($banner['product_id']==$product['id']?'selected':''); ?>> <?php echo e($product['name']); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group" id="type-category" style="display: <?php echo e($banner['category_id']==null?'none':'block'); ?>"> <label class="input-label" for="exampleFormControlSelect1"><?php echo e(\App\CentralLogics\translate('category')); ?> <span class="input-label-secondary">*</span></label> <select name="category_id" class="form-control js-select2-custom"> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category['id']); ?>" <?php echo e($banner['category_id']==$category['id']?'selected':''); ?>><?php echo e($category['name']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <hr> <button type="submit" class="btn btn-primary"><?php echo e(\App\CentralLogics\translate('update')); ?></button> </form> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script_2'); ?> <script> function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#viewer').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#customFileEg1").change(function () { readURL(this); }); function show_item(type) { if (type === 'product') { $("#type-product").show(); $("#type-category").hide(); } else { $("#type-product").hide(); $("#type-category").show(); } } </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/meumer25/api.meumercado.app/resources/views/admin-views/banner/edit.blade.php ENDPATH**/ ?>
Save
Cancel