Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Testimonial/resources/views/index.blade.php
Назад
@extends('admin.master_layout') @section('title') <title>{{ __('Testimonials') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Testimonials') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Testimonials') => '#', ]" /> <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="__('Testimonials')" /> <div> @adminCan('testimonial.create') <x-admin.add-button :href="route('admin.testimonial.create')" /> @endadminCan </div> </div> <div class="card-body"> <div class="table-responsive max-h-400"> <table class="table table-striped"> <thead> <tr> <th>{{ __('SN') }}</th> <th>{{ __('Name') }}</th> <th>{{ __('Designation') }}</th> <th>{{ __('Image') }}</th> <th>{{ __('Status') }}</th> <th>{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($testimonials as $testimonial) <tr> <td>{{ $loop->index + 1 }}</td> <td>{{ $testimonial->name }}</td> <td>{{ $testimonial->designation }}</td> <td><img src="{{ asset($testimonial->image) }}" alt="" class="rounded-circle my-2"> </td> <td> <input onchange="changeStatus({{ $testimonial->id }})" id="status_toggle" type="checkbox" {{ $testimonial->status ? 'checked' : '' }} data-toggle="toggle" data-onlabel="{{ __('Active') }}" data-offlabel="{{ __('Inactive') }}" data-onstyle="success" data-offstyle="danger"> </td> <td> @adminCan('testimonial.edit') <x-admin.edit-button :href="route('admin.testimonial.edit', ['testimonial' => $testimonial->id, 'code' => getSessionLanguage()])" /> @endadminCan @adminCan('testimonial.delete') <x-admin.delete-button :id="$testimonial->id" onclick="deleteData" /> @endadminCan </td> </tr> @empty @adminCan('testimonial.create') <x-empty-table :name="__('Testimonial')" route="admin.testimonial.create" create="yes" :message="__('No data found!')" colspan="6" /> @endadminCan @endforelse </tbody> </table> </div> <div class="float-right"> {{ $testimonials->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/testimonial/') }}" + "/" + 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/testimonial/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.02 |
proxy
|
phpinfo
|
Настройка