Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Service/resources/views/index.blade.php
Назад
@extends('admin.master_layout') @section('title') <title>{{ __('Service') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Service') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Service') => '#', ]" /> <div class="section-body"> <div class="mt-4 row"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Service')" /> <div> @adminCan('service.create') <x-admin.add-button :href="route('admin.service.create')" /> @endadminCan </div> </div> <div class="card-body"> <div class="table-responsive max-h-400"> <table class="table table-striped"> <thead> <tr> <th width="10%">{{ __('SN') }}</th> <th width="20%">{{ __('Title') }}</th> <th width="30%">{{ __('Description') }}</th> <th width="20%">{{ __('Status') }}</th> <th width="20%">{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($services as $service) <tr> <td>{{ $loop->index + 1 }}</td> <td>{{ $service->title }}</td> <td>{{ $service->description }}</td> <td> <input onchange="changeStatus({{ $service->id }})" id="status_toggle" type="checkbox" {{ $service->status ? 'checked' : '' }} data-toggle="toggle" data-on="{{ __('Active') }}" data-off="{{ __('Inactive') }}" data-onstyle="success" data-offstyle="danger"> </td> <td> @adminCan('service.edit') <x-admin.edit-button :href="route('admin.service.edit', ['service' => $service->id, 'code' => getSessionLanguage()])" /> @endadminCan @adminCan('service.delete') <x-admin.delete-button :id="$service->id" onclick="deleteData" /> @endadminCan </td> </tr> @empty @adminCan('service.create') <x-empty-table :name="__('Service')" route="admin.service.create" create="yes" :message="__('No data found!')" colspan="5"> </x-empty-table> @endadminCan @endforelse </tbody> </table> </div> <div class="float-right"> {{ $services->onEachSide(3)->onEachSide(3)->links() }} </div> </div> </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> @endsection @push('js') <script> "use strict"; function deleteData(id) { $("#deleteForm").attr("action", "{{ url('/admin/service/') }}" + "/" + id) } function changeStatus(id) { var isDemo = "{{ env('APP_MODE') ?? 'LIVE' }}"; if (isDemo == 'DEMO') { toastr.error("{{ __('This Is Demo Version. You Can Not Change Anything') }}"); return; } $.ajax({ type: "put", data: { _token: '{{ csrf_token() }}', }, url: "{{ url('/admin/service/status-update') }}" + "/" + id, success: function(response) { if (response.success) { toastr.success(response.message); } else { toastr.warning(response.message); } }, error: function(err) { handleFetchError(err) } }) } </script> @endpush @push('css') <style> .dd-custom-css { position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, -131px, 0px); } .max-h-400 { min-height: 400px; } </style> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка