Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Property/resources/views/admin/property/agent_property.blade.php
Назад
@extends('admin.master_layout') @section('title') <title>{{ __('Property List') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Property List') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Property List') => '#', ]" /> <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.agent-property') }}" 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') == '1'" value="1" text="{{ __('Yes') }}" /> <x-admin.select-option :selected="request('status') == '0'" value="0" 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="__('Property List')" /> </div> <div class="card-body"> <div class="table-responsive max-h-400"> <table class="table table-striped"> <thead> <tr> <th width="5%">{{ __('SN') }}</th> <th width="35%">{{ __('Property') }}</th> <th width="5%">{{ __('Price') }}</th> <th width="10%">{{ __('Type') }}</th> <th width="5%">{{ __('Purpose') }}</th> <th width="5%">{{ __('Views') }}</th> <th width="5%">{{ __('Status') }}</th> <th width="30%" class="text-center">{{ __('Actions') }}</th> </tr> </thead> <tbody> @forelse ($properties as $property) <tr> <td>{{ $loop->index + 1 }}</td> <td>{{ $property->title }}</td> <td>{{ currency($property->price) }}</td> <td>{{ $property->propertyType->title }}</td> <td>{{ $property->propertyPurpose->purpose }}</td> <td>{{ $property->views }}</td> <td> @if ($property->status == 1) @if ($property->expired_date >= date('Y-m-d')) <span class="badge badge-pill badge-success">{{ __('Active') }}</span> @else <span class="badge badge-pill badge-danger">{{ __('Expired') }}</span> @endif @else <span class="badge badge-pill badge-danger">{{ __('Inactive') }}</span> @endif </td> <td class="text-center"> <div> <a target="__blank" href="{{ route('property.details', $property->slug) }}" class="m-1 text-white btn btn-sm btn-warning" title="Edit"> <i class="fa fa-eye"></i> </a> @adminCan('property.edit') <x-admin.edit-button :href="route('admin.property.edit', [ 'property' => $property->id, 'code' => getSessionLanguage(), ])" /> @endadminCan @adminCan('property.delete') <x-admin.delete-button :id="$property->id" onclick="deleteData" /> @endadminCan </div> </td> </tr> @empty <x-empty-table :name="__('Property')" route="admin.property.create" create="no" :message="__('No data found!')" colspan="8"></x-empty-table> @endforelse </tbody> </table> </div> @if (request()->get('par-page') !== 'all') <div class="float-right"> {{ $properties->onEachSide(0)->links() }} </div> @endif </div> </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> @endsection @push('js') <script> function deleteData(id) { $("#deleteForm").attr("action", '{{ url('/admin/delete-agent-property/') }}' + "/" + 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/property/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
|
Настройка