Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/oldsite/Modules/Property/resources/views/admin/review/review.blade.php
Назад
@extends('admin.master_layout') @section('title') <title>{{ __('Property Review') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <div class="section-header"> <h1>{{ __('Property Review') }}</h1> <div class="section-header-breadcrumb"> <div class="breadcrumb-item active"><a href="{{ route('admin.dashboard') }}">{{ __('Dashboard') }}</a> </div> <div class="breadcrumb-item">{{ __('Property Review') }}</div> </div> </div> <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"> <h4>{{ __('Property Review') }}</h4> </div> <div class="card-body"> <div class="table-responsive max-h-400"> <table class="table table-striped"> <thead> <tr> <th width="5%">{{ __('Serial') }}</th> <th width="15%">{{ __('Name') }}</th> <th width="25%">{{ __('Comment') }}</th> <th width="20%">{{ __('Rating') }}</th> <th width="20%">{{ __('Property') }}</th> <th width="15%">{{ __('Status') }}</th> <th width="5%" class="text-center">{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($reviews as $index => $review) <tr> <td>{{ $loop->index + 1 }}</td> <td><a href="{{ route('agent.show',['user_type' => '2','user_name'=>$review->user->user_name]) }}">{{ $review->user->name }}</a></td> <td >{{ $review->comment }}</td> <td> {{ __('Service') }}= {{ $review->service_rating }} <i class="fas fa-star" aria-hidden="true"></i> <br > {{ __('Location') }}= {{ $review->location_rating }} <i class="fas fa-star" aria-hidden="true"></i> <br > {{ __('Value') }}= {{ $review->money_rating }} <i class="fas fa-star" aria-hidden="true"></i> <br > {{ __('Cleanliness') }}= {{ $review->clean_rating }} <i class="fas fa-star" aria-hidden="true"></i> <br > {{ __('Avarage') }}= {{ $review->avarage_rating }} <i class="fas fa-star" aria-hidden="true"></i> </td> <td><a target="_blank" href="{{ route('property.details',$review->property->slug) }}">{{ $review->property->title }}</a></td> <td> <input onchange="changeStatus({{ $review->id }})" id="status_toggle" type="checkbox" {{ $review->status ? 'checked' : '' }} data-toggle="toggle" data-on="{{ __('Active') }}" data-off="{{ __('Inactive') }}" data-onstyle="success" data-offstyle="danger"> </td> <td class="text-center"> <div> <x-admin.delete-button :id="$review->id" onclick="deleteData" /> </div> </td> </tr> @empty <x-empty-table :name="__('Property Review')" route="admin.property-type.create" create="no" :message="__('No data found!')" colspan="7"></x-empty-table> @endforelse </tbody> </table> </div> <div class="float-right"> {{ $reviews->links() }} </div> </div> </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> @endsection @push('js') <script> function deleteData(id) { $("#deleteForm").attr("action", '{{ url('admin/review-delete') }}' + "/" + 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/review-status/') }}" + "/" + 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.71 |
proxy
|
phpinfo
|
Настройка