Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/resources/views/landlord/maintenance_all.blade.php
Назад
@extends('landlord.layouts.landlord') @section('links') <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet"> @endsection @section('title', 'Landlord Dashboard - SOMNI') @section('content') <div class="main-section"> <x-landlord-side-nav /> <main class="layout-main"> <div class="content-wrapper"> <section class="profile-edit"> <div class="container-fluid custom-container"> <div class="row "> <div class="col-md-12"> <div class="main-db-layout"> <x-landlord-mobile-widget :user="$user" :notifications="$notifications" :nCount="$nCount" /> <!--Here--> <div class="row"> <div class="col-md-12 col-lg-12"> <div class="row"> <div class="col-md-12"> <div class="maintenance-card"> <div class="cfh-main"> <div class="cash-flow-head"> <h4>Maintenance</h4> </div> <div class="cash-flow-drop drop-elip-thumb"> {{-- <button type="button" class="drop-ellipse-btn"> <img src="{{asset('/images/drop-ellipse.svg')}}" alt="" class="img-fluid"> </button> --}} </div> </div> <ul class="nav nav-tabs mtne-tabs" id="myTab" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">Maintenance</button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="false">Archived</button> </li> </ul> <div class="tab-content" id="myTabContent"> <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab"> <div class="maintenance-table-main"> <div class="table-responsive yajra"> <table class="table yajra-datatbles" id="landlord_maintenance_table"> <thead> <tr> {{-- <th>#</th> --}} <th scope="col">Date</th> <th scope="col">Task Item</th> <th scope="col" class="txt-center">Unit No.</th> <th scope="col" class="">Category</th> <th scope="col" class="">Status</th> <th scope="col" class="">Action</th> </tr> </thead> </table> </div> <div class="col-md-12"> <div class="paginate_maintenance"> <!--Pagination Here--> {{-- {{ $maintenances->links() }} --}} </div> </div> </div> </div> <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab"> <div class="maintenance-table-main"> <div class="table-responsive yajra"> <table class="table yajra-datatbles w-100" id="landlord_maintenance_archive_table"> <thead> <tr> {{-- <th>#</th> --}} <th scope="col">Date</th> <th scope="col">Task Item</th> <th scope="col" class="txt-center">Unit No.</th> <th scope="col" class="">Category</th> <th scope="col" class="">Status</th> {{-- <th scope="col" class="">Action</th> --}} </tr> </thead> </table> </div> <div class="col-md-12"> <div class="paginate_maintenance"> <!--Pagination Here--> {{-- {{ $maintenances->links() }} --}} </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </main> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="https://www.gstatic.com/firebasejs/8.3.2/firebase.js"></script> <link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.all.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script> <script src="{{asset('/js/global.js')}}"></script> <script src="{{asset('/js/dashboard-overview.js')}}"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script> @if(!empty($verification)) <x-email-verification-popup :verification=$verification /> @endif <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> <script> $(document).ready(function() { // console.log('init'); var table = $('#landlord_maintenance_table').DataTable({ processing: true, serverSide: true, ajax: "{{route('ajax.maintenance.table')}}", columns: [ // {data:'DT_RowIndex',name:'DT_RowIndex'}, { data: 'date', name: 'date' }, { data: 'task', name: 'task', orderable: true, searchable: true }, { data: 'unit_name', name: 'unit_name.number', orderable: true, searchable: true }, { data: 'category', name: 'category.name', orderable: true, searchable: true }, { data: 'status', name: 'status', orderable: true, searchable: true }, { data: 'action', name: 'action', orderable: false, searchable: false } ], }); var tableArchive = $('#landlord_maintenance_archive_table').DataTable({ processing: true, serverSide: true, ajax: "{{route('ajax.maintenance.table.archive')}}", columns: [ // {data:'DT_RowIndex',name:'DT_RowIndex'}, { data: 'date', name: 'date' }, { data: 'task', name: 'task', orderable: true, searchable: true }, { data: 'unit_name', name: 'unit_name.number', orderable: true, searchable: true }, { data: 'category', name: 'category.name', orderable: true, searchable: true }, { data: 'status', name: 'status', orderable: true, searchable: true }, // { // data: 'action', // name: 'action', // orderable: false, // searchable: false // } ], }); }); function updateFunction(event) { // Get the select element // var selectElement = document.getElementById("status_select"); var selectElement = event.target; // Get the selected option var selectedOption = selectElement.options[selectElement.selectedIndex]; // Get the data-event_id attribute value var event_id = selectedOption.getAttribute("data-event_id"); // Log the selected option and its data-event_id $.ajax({ url: "{{route('event.update.status')}}", headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content'), }, type: "POST", data: { status: selectedOption.value, event_id: event_id }, success: function(response) { toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.success(response.message); }, error: function(jqXHR, exception) { var msg = ''; if (jqXHR.status === 0) { msg = 'Not connect.\n Verify Network.'; } else if (jqXHR.status == 404) { msg = 'Requested page not found. [404]'; } else if (jqXHR.status == 500) { msg = 'Internal Server Error [500].'; } else if (exception === 'parsererror') { msg = 'Requested JSON parse failed.'; } else if (exception === 'timeout') { msg = 'Time out error.'; } else if (exception === 'abort') { msg = 'Ajax request aborted.'; } else { msg = 'Uncaught Error.\n' + jqXHR.responseText; } toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.success(msg); }, }); // console.log("Selected Option: ", selectedOption.value); // console.log("Event ID: ", event_id); } </script> @if(\Session::has('success')) <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.success('{!! \Session::get("success") !!}'); </script> @endif @if(\Session::has('error')) <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.error('{!! \Session::get("error") !!}'); </script> @endif @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка