Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/resources/views/admin/city/index.blade.php
Назад
@extends('layouts.master') @section('title', 'Manage Users') @push('styles') <link rel="stylesheet" href="{{asset('assets/vendor/libs/datatables-bs5/datatables.bootstrap5.css')}}" /> <link rel="stylesheet" href="{{asset('assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.css')}}" /> @endpush @section('content') <div class="container-xxl flex-grow-1 container-p-y"> <div class="card"> <div class="card-header"> <h5 class="float-start">Cities</h5> <a href="{{route('city.add')}}" class="btn btn-primary float-end redirect-btn">Add +</a> </div> <div class="card-datatable text-nowrap"> <div class="row"> <div class="col-md-12"> @include('partials.alert') </div> </div> <table id="custom_datatable" class="table table-bordered table-responsive"></table> </div> </div> </div> @endsection @push('scripts') <script src="{{asset('assets/vendor/libs/datatables/jquery.dataTables.js')}}"></script> <script src="{{asset('assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js')}}"></script> <script src="{{asset('assets/vendor/libs/datatables-responsive/datatables.responsive.js')}}"></script> <script src="{{asset('assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.js')}}"></script> <script src="{{asset('assets/js/axios.min.js')}}"></script> <script src="{{asset('assets/js/sweetalert.min.js')}}"></script> <script> $(function (){ $('#custom_datatable').DataTable({ "processing": true, "serverSide": true, 'iDisplayLength':50, "orderMulti": true, "scrollX": true, "ajax": "{{ route('city') }}", "columns": [ { "data" : "id","title" : "#", "orderable": true, "searchable": true }, { "data" : "city_name","title" : "City Name", "orderable": true, "searchable": true }, { "data" : "action","title" : "Action", "orderable": false, "searchable": false, "width": "190px" } ] }); }); function changeStatus(route) { axios.get(route).then(function (response) { swal({ title: response.data.msg, icon: "success", closeOnClickOutside: false }).then((successBtn) => { if (successBtn) { $('#custom_datatable').DataTable().ajax.reload(); } }); }).catch(function (error) { swal({ title: error.response.data.msg, icon: "error", dangerMode: true, closeOnClickOutside: false }); }); } function deleteData(route) { swal({ title: "Are You Sure?", icon: "warning", closeOnClickOutside: false, buttons:{cancel:true,confirm:"Yes, delete it!"}, dangerMode: true }).then((btn) => { if(btn){ window.location.href = route; } }) } </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка