Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Property/resources/views/user/property/slider.blade.php
Назад
@extends('user.layout') @section('title') <title>{{ __('Property Slider') }}</title> @endsection @section('user-dashboard') <div class="wsus__dashboard_main_content"> <h4 class="heading">{{ __('Property Slider') }} <a href="{{ route('user.property.edit', ['property' => $property->id, 'code' => allLanguages()->first()->code]) }}" class="common_btn custom-create-property"><i class="fa fa-arrow-left"></i>{{ __('Back Property Page') }}</a> </h4> <div class="card"> <div class="card-body"> <form id="dropzoneForm" method="post" action="{{ route('user.upload-property-slider', $property->id) }}" enctype="multipart/form-data" class="dropzone"> @method('PUT') @csrf </form> <div class="mt-3 text-center"> <button type="button" class="btn btn-success" id="submit-all"><i class="fas fa-upload"></i> {{ __('Upload All') }} </button> </div> </div> </div> <div class="wsus__my_property mt-4"> <div class="row"> <div class="col-12"> <div class="table-responsive"> <table class="table"> <tr> <th class="image"> <p>{{ __('Serial') }}</p> </th> <th class="slider_image"> <p>{{ __('Preview') }}</p> </th> <th class="actions"> <p>{{ __('Action') }}</p> </th> </tr> @foreach ($slider_images as $item) <tr> <td class="image"> {{ $loop->index + 1 }} </td> <td class="title slider_image"> @if ($item->image) <img class="img-thumbnail" src="{{ asset($item->image) }}" alt="" height="100px" width="100px"> @endif </td> <td class="actions"> <a class="text-danger" href="{{ route('user.delete-property-slider', $item->id) }}" onclick="return confirm('are you sure?')"><i class="far fa-trash-alt "></i></a> </td> </tr> @endforeach </table> </div> </div> </div> </div> </div> @endsection @push('css') <link rel="stylesheet" href="{{ asset('backend/dropzone/dropzone.min.css') }}"> <style> .dropzone { background: white; border-radius: 5px; border: 2px dashed rgb(0, 135, 247); border-image: none; max-width: 805px; margin-left: auto; margin-right: auto; } </style> @endpush @push('js') <script src="{{ asset('backend/dropzone/dropzone.min.js') }}"></script> <script type="text/javascript"> function deleteData(id) { $("#deleteForm").attr("action", "{{ url('/admin/delete-property-slider/') }}" + "/" + id); } Dropzone.options.dropzoneForm = { autoProcessQueue: false, uploadMultiple: true, parallelUploads: 10, thumbnailHeight: 200, thumbnailWidth: 200, maxFilesize: 3, filesizeBase: 1000, addRemoveLinks: true, renameFile: function(file) { var dt = new Date(); var time = dt.getTime(); return time + file.name; }, acceptedFiles: ".jpeg,.jpg,.png,.gif,.webp", init: function() { myDropzone = this; $('#submit-all').on('click', function(e) { e.preventDefault(); myDropzone.processQueue(); }); this.on("complete", function() { if (this.getQueuedFiles().length == 0 && this.getUploadingFiles().length == 0) { var _this = this; _this.removeAllFiles(); } }); }, success: function(file, response) { window.location.href = response.url; toastr.success(response.message, 'Success'); }, }; </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка