⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.184
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
eplangoweb
/
www
/
new
/
storage
/
framework
/
views
/
View File Name :
b7917c438b8b89397b744b23dcaa9804645e2c82.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(__('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(__('Portfolio Page')); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('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(__('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(__('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(__('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/form-data" 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(__('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"> </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(__('Title')); ?> **</label> <input type="text" class="form-control" name="title" value="<?php echo e($portfolio->title); ?>"> <p id="errtitle" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for="">Category **</label> <select class="form-control" name="category"> <option value="" selected disabled>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($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="row"> <div class="col-lg-6"> <div class="form-group"> <label for="status"><?php echo e(__('Status*')); ?></label> <select id="status" class="form-control" name="status"> <option value="1" <?php echo e($portfolio->status == 1 ? 'selected' : ''); ?>> <?php echo e(__('Completed')); ?> </option> <option value="0" <?php echo e($portfolio->status == 0 ? 'selected' : ''); ?>> <?php echo e(__('In Progress')); ?> </option> </select> <?php if($errors->has('status')): ?> <p class="mt-2 mb-0 text-danger"><?php echo e($errors->first('status')); ?></p> <?php endif; ?> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Client Name')); ?></label> <input type="text" class="form-control" name="client_name" value="<?php echo e($portfolio->client_name); ?>"> <p id="errclient_name" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Start Date')); ?></label> <input type="date" class="form-control" name="start_date" value="<?php echo e($portfolio->start_date); ?>"> <p id="errstart_date" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for=""><?php echo e(__('Submission Date')); ?></label> <input type="date" class="form-control" name="submission_date" value="<?php echo e($portfolio->submission_date); ?>"> <p id="errsubmission_date" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <label for=""><?php echo e(__('Website Link')); ?></label> <input type="text" class="form-control" name="website_link" value="<?php echo e($portfolio->website_link); ?>"> <p id="errwebsite_link" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="form-group"> <label for=""><?php echo e(__('Content')); ?> **</label> <textarea class="form-control summernote" name="content" data-height="300"><?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(__('Serial Number')); ?> **</label> <input type="number" class="form-control ltr" name="serial_number" value="<?php echo e($portfolio->serial_number); ?>"> <p id="errserial_number" class="mb-0 text-danger em"></p> <p class="text-warning"> <small><?php echo e(__('The higher the serial number is, the later the portfolio will be shown.')); ?></small> </p> </div> <?php if($userBs->theme != 'home_ten'): ?> <div class="form-group"> <label for="featured" class="my-label mr-3"><?php echo e(__('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> <?php endif; ?> <div class="form-group"> <label for=""><?php echo e(__('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(__('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="submitBtn" class="btn btn-success"><?php echo e(__('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 class="fw-150" 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/eplangoweb/public_html/resources/views/user/portfolio/portfolio/edit.blade.php ENDPATH**/ ?>