⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
public_html
/
storage
/
framework
/
views
/
View File Name :
9a760f5caa59847dc9875a1a9fb7180b13cbabf6.php
<?php if(!empty($portfolio->language) && $portfolio->language->rtl == 1): ?> <?php $__env->startSection('styles'); ?> <style> form input, form textarea, form select { direction: rtl; } form .note-editor.note-frame .note-editing-area .note-editable { direction: rtl; text-align: right; } </style> <?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e($keywords['Edit_Portfolio'] ?? __('Edit Portfolio')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('user-dashboard')); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e($keywords['Portfolio_Page'] ?? __('Portfolio Page')); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e($keywords['Edit_Portfolio'] ?? __('Edit Portfolio')); ?></a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title d-inline-block"><?php echo e($keywords['Edit_Portfolio'] ?? __('Edit Portfolio')); ?></div> <a class="btn btn-info btn-sm float-right d-inline-block" href="<?php echo e(route('user.portfolio.index') . '?language=' . $portfolio->language->code); ?>"> <span class="btn-label"> <i class="fas fa-backward"></i> </span> <?php echo e($keywords['Back'] ?? __('Back')); ?> </a> </div> <div class="card-body pt-5 pb-5"> <div class="row"> <div class="col-lg-8 offset-lg-2"> <div class="px-2"> <label for="" class="mb-2"><strong><?php echo e($keywords['Slider_Images'] ?? __('Slider Images')); ?> **</strong></label> <div class="row"> <div class="col-12"> <table class="table table-striped" id="imgtable"> </table> </div> </div> <form action="<?php echo e(route('user.portfolio.sliderstore')); ?>" id="my-dropzone" enctype="multipart/formdata" class="dropzone"> <?php echo csrf_field(); ?> <input type="hidden" name="portfolio_id" value="<?php echo e($portfolio->id); ?>"> </form> <p class="em text-danger mb-0" id="errslider_images"></p> </div> <form id="ajaxForm" class="" action="<?php echo e(route('user.portfolio.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <input type="hidden" name="id" value="<?php echo e($portfolio->id); ?>"> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <div class="col-12 mb-2"> <label for="image"><strong><?php echo e($keywords['Image'] ?? __('Image')); ?></strong></label> </div> <div class="col-md-12 showImage mb-3"> <img src="<?php echo e(isset($portfolio->image) ? asset('assets/front/img/user/portfolios/' . $portfolio->image) : asset('assets/admin/img/noimage.jpg')); ?>" alt="..." class="img-thumbnail" width="170"> </div> <input type="file" name="image" id="image" class="form-control"> <p id="errimage" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="form-group"> <label for=""><?php echo e($keywords['Title'] ?? __('Title')); ?> **</label> <input type="text" class="form-control" name="title" value="<?php echo e($portfolio->title); ?>" placeholder="<?php echo e($keywords['Enter_title'] ?? __('Enter title')); ?>"> <p id="errtitle" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e($keywords['Category'] ?? __('Category')); ?> **</label> <select class="form-control" name="category"> <option value="" selected disabled> <?php echo e($keywords['Select_a_category'] ?? __('Select a category')); ?></option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->id); ?>" <?php echo e(!empty($portfolio->bcategory) ? ($category->id == $portfolio->bcategory->id ? 'selected' : '') : ''); ?>> <?php echo e($category->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <p id="errcategory" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e($keywords['Content'] ?? __('Content')); ?> **</label> <textarea class="form-control summernote" name="content" data-height="300" placeholder="<?php echo e($keywords['Enter_content'] ?? __('Enter content')); ?>"><?php echo e(replaceBaseUrl($portfolio->content)); ?></textarea> <p id="errcontent" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e($keywords['Serial_Number'] ?? __('Serial Number')); ?> **</label> <input type="number" class="form-control ltr" name="serial_number" value="<?php echo e($portfolio->serial_number); ?>" placeholder="<?php echo e($keywords['Enter_Serial_Number'] ?? __('Enter Serial Number')); ?>"> <p id="errserial_number" class="mb-0 text-danger em"></p> <p class="text-warning"> <small><?php echo e($keywords['portfolio_Serial_Number_msg'] ?? __('The higher the serial number is, the later the portfolio will be shown')); ?>.</small> </p> </div> <div class="form-group"> <label for="featured" class="my-label mr-3"><?php echo e($keywords['Featured'] ?? __('Featured')); ?></label> <input id="featured" type="checkbox" name="featured" value="1" <?php echo e($portfolio->featured == 1 ? 'checked' : ''); ?>> <p id="errfeatured" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e($keywords['Meta_Keywords'] ?? __('Meta Keywords')); ?></label> <input type="text" class="form-control" name="meta_keywords" value="<?php echo e($portfolio->meta_keywords); ?>" data-role="tagsinput"> <p id="errmeta_keywords" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e($keywords['Meta_Description'] ?? __('Meta Description')); ?></label> <textarea type="text" class="form-control" name="meta_description" rows="5"><?php echo e($portfolio->meta_description); ?></textarea> <p id="errmeta_description" class="mb-0 text-danger em"></p> </div> </form> </div> </div> </div> <div class="card-footer"> <div class="form"> <div class="form-group from-show-notify row"> <div class="col-12 text-center"> <button type="submit" id="" data-form="ajaxForm" class="submitBtn btn btn-success"><?php echo e($keywords['Update'] ?? __('Update')); ?></button> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> "use strict"; // myDropzone is the configuration for the element that has an id attribute // with the value my-dropzone (or myDropzone) Dropzone.options.myDropzone = { acceptedFiles: '.png, .jpg, .jpeg', url: "<?php echo e(route('user.portfolio.sliderstore')); ?>", success: function(file, response) { // Create the remove button var removeButton = Dropzone.createElement( "<button class='rmv-btn'><i class='fa fa-times'></i></button>"); // Capture the Dropzone instance as closure. var _this = this; // Listen to the click event removeButton.addEventListener("click", function(e) { // Make sure the button click doesn't submit the form: e.preventDefault(); e.stopPropagation(); rmvimg(response.file_id, _this, file); }); // Add the button to the file preview element. file.previewElement.appendChild(removeButton); var content = {}; content.message = 'Slider images added successfully!'; content.title = 'Success'; content.icon = 'fa fa-bell'; $.notify(content, { type: 'success', placement: { from: 'top', align: 'right' }, time: 1000, delay: 1000, }); } }; function rmvimg(fileid, _this, file) { // If you want to the delete the file on the server as well, // you can do the AJAX request here. $.ajax({ url: "<?php echo e(route('user.portfolio.sliderrmv')); ?>", type: 'POST', data: { _token: "<?php echo e(csrf_token()); ?>", fileid: fileid, type: 'edit' }, success: function(data) { if (data == "minimum_one") { var content = {}; content.message = 'Minimum one slider image is required!'; content.title = 'Warning'; content.icon = 'fa fa-bell'; $.notify(content, { type: 'warning', placement: { from: 'top', align: 'right' }, time: 1000, delay: 1000, }); } else { _this.removeFile(file); var content = {}; content.message = 'Slider image deleted successfully!'; content.title = 'Success'; content.icon = 'fa fa-bell'; $.notify(content, { type: 'success', placement: { from: 'top', align: 'right' }, time: 1000, delay: 1000, }); } } }); } var el = 0; $(document).ready(function() { $.get("<?php echo e(route('user.portfolio.images', $portfolio->id)); ?>", function(data) { for (var i = 0; i < data.length; i++) { $("#imgtable").append('<tr class="trdb" id="trdb' + data[i].id + '"><td><div class="thumbnail"><img style="width:150px;" src="<?php echo e(asset('assets/front/img/user/portfolios/')); ?>/' + data[i].image + '" alt="Ad Image"></div></td><td><button type="button" class="btn btn-danger pull-right rmvbtndb" onclick="rmvdbimg(' + data[i].id + ')"><i class="fa fa-times"></i></button></td></tr>'); } }); }); function rmvdbimg(indb) { $(".request-loader").addClass("show"); $.ajax({ url: "<?php echo e(route('user.portfolio.sliderrmv')); ?>", type: 'POST', data: { _token: "<?php echo e(csrf_token()); ?>", fileid: indb, type: 'edit' }, success: function(data) { $(".request-loader").removeClass("show"); if (data == "minimum_one") { var content = {}; content.message = 'Minimum one slider image is required!'; content.title = 'Warning'; content.icon = 'fa fa-bell'; $.notify(content, { type: 'warning', placement: { from: 'top', align: 'right' }, time: 1000, delay: 1000, }); } else { $("#trdb" + indb).remove(); var content = {}; content.message = 'Slider image deleted successfully!'; content.title = 'Success'; content.icon = 'fa fa-bell'; $.notify(content, { type: 'success', placement: { from: 'top', align: 'right' }, time: 1000, delay: 1000, }); } } }); } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/public_html/resources/views/user/portfolio/portfolio/edit.blade.php ENDPATH**/ ?>