Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/CustomPage/resources/views/index.blade.php
Назад
@extends('admin.master_layout') @section('title') <title>{{ __('Custom Page') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Custom Page') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Custom Page') => '#', ]" /> <div class="section-body"> <div class="mt-4 row"> {{-- Search filter --}} <div class="col-12"> <div class="card"> <div class="card-body p-0"> <form action="{{ route('admin.custom-page.index') }}" method="GET" onchange="$(this).trigger('submit')" class="card-body"> <div class="row"> <div class="col-md-3 form-group mb-3 mb-md-0"> <x-admin.form-input name="keyword" placeholder="{{ __('Search') }}" value="{{ request()->get('keyword') }}" /> </div> <div class="col-md-3 form-group mb-3 mb-md-0"> <x-admin.form-select name="status" id="status" class="form-select"> <x-admin.select-option value="" text="{{ __('Select Status') }}" /> <x-admin.select-option :selected="request('status') == 'enable'" value="enable" text="{{ __('Yes') }}" /> <x-admin.select-option :selected="request('status') == 'disable'" value="disable" text="{{ __('No') }}" /> </x-admin.form-select> </div> <div class="col-md-3 form-group mb-3 mb-md-0"> <x-admin.form-select name="order_by" id="order_by" class="form-select"> <x-admin.select-option value="" text="{{ __('Order By') }}" /> <x-admin.select-option :selected="request('order_by') == '1'" value="1" text="{{ __('ASC') }}" /> <x-admin.select-option :selected="request('order_by') == '0'" value="0" text="{{ __('DESC') }}" /> </x-admin.form-select> </div> <div class="col-md-3 form-group mb-3 mb-md-0"> <x-admin.form-select name="par-page" id="par-page" class="form-select"> <x-admin.select-option value="" text="{{ __('Per Page') }}" /> <x-admin.select-option :selected="request('par-page') == '5'" value="5" text="{{ __('5') }}" /> <x-admin.select-option :selected="request('par-page') == '10'" value="10" text="{{ __('10') }}" /> <x-admin.select-option :selected="request('par-page') == '25'" value="25" text="{{ __('25') }}" /> <x-admin.select-option :selected="request('par-page') == '50'" value="50" text="{{ __('50') }}" /> <x-admin.select-option :selected="request('par-page') == '100'" value="100" text="{{ __('100') }}" /> <x-admin.select-option :selected="request('par-page') == 'all'" value="all" text="{{ __('All') }}" /> </x-admin.form-select> </div> </div> </form> </div> </div> </div> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Custom Pages')" /> <div> <x-admin.add-button :href="route('admin.custom-page.create')" /> </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="55%">{{ __('Page Name') }}</th> <th width="10%">{{ __('Status') }}</th> <th width="25%">{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($custom_pages as $custom_page) <tr> <td>{{ $loop->index + 1 }}</td> <td> {{ $custom_page->page_name }} </td> <td> <input onchange="changeStatus({{ $custom_page->id }})" id="status_toggle" type="checkbox" {{ $custom_page->status == 'enable' ? 'checked' : '' }} data-toggle="toggle" data-on="{{ __('Active') }}" data-off="{{ __('Inactive') }}" data-onstyle="success" data-offstyle="danger"> </td> <td> <x-admin.edit-button :href="route('admin.custom-page.edit', [ 'custom_page' => $custom_page->id, 'code' => getSessionLanguage(), ])" /> <x-admin.delete-button :id="$custom_page->id" onclick="deleteData" /> </tr> @empty <x-empty-table :name="__('Custom Page List')" route="admin.custom-page.create" create="yes" :message="__('No data found!')" colspan="5"></x-empty-table> @endforelse </tbody> </table> </div> @if (request()->get('par-page') !== 'all') <div class="float-right"> {{ $custom_pages->onEachSide(3)->onEachSide(3)->links() }} </div> @endif </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/custom-page/') }}" + "/" + 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/custom-page/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
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка