Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Property/resources/views/admin/property/nearestlocation.blade.php
Назад
@extends('admin.master_layout') @section('title') <title>{{ __('Property Nearest Location') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Property Nearest Location') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Edit Property') => route('admin.property.edit', ['property' => $property->id, 'code' => allLanguages()->first()->code]), __('Property Nearest Location') => '#', ]" /> <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="__('Upload Nearest Location')" /> <div> <x-admin.back-button :href="route('admin.property.edit', ['property' => $property->id,'code' => allLanguages()->first()->code])" /> </div> </div> <div class="card-body"> <form id="dropzoneForm" method="post" action="{{ route('admin.upload-nearest-location', $property->id) }}" enctype="multipart/form-data" method="POST"> @csrf <div class="row"> <div class="col-md-12"> <div class="form-group"> <x-admin.form-select name="nearest_place_id" class="select2" label="{{ __('Nearest Location') }} " required="true"> <x-admin.select-option value="" text="{{ __('Select Location') }}" /> @foreach ($locations as $location) <x-admin.select-option :selected=" old('nearest_place_id')" value="{{ $location->id }}" text="{{ $location->title }}" /> @endforeach </x-admin.form-select> </div> <div class="form-group"> <x-admin.form-input name="distance" label="{{ __('Distance') }}" tooltip="{{ __('KM') }}" value="{{ old('distance') }}" required="true"/> </div> @adminCan('property.nearest.location.upload') <x-admin.save-button :text="__('Save')"></x-admin.save-button> @endadminCan </div> </div> </form> </div> </div> <div class="card"> <div class="card-header"> <h4>{{ __('Nearest Location') }}</h4> </div> <div class="card-body"> <table class="table table-striped"> <thead> <tr> <th>{{ __('SN') }}</th> <th>{{ __('Location') }}</th> <th>{{ __('Distance') }}</th> <th class="text-center">{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($nearest_locations as $item) <tr> <td>{{ $loop->index + 1 }}</td> <td>{{ $item->nearestLocation->title }}</td> <td>{{ $item->distance }}</td> <td class="text-center"> @adminCan('property.nearest.location.delete') <div> <x-admin.delete-button :id="$item->id " onclick="deleteData" /> </div> @endadminCan </td> </tr> @empty <x-empty-table :name="__('Nearest Location')" route="admin.property.index" create="no" :message="__('No data found!')" colspan="4"> </x-empty-table> @endforelse </tbody> </table> </div> </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> @endsection @push('js') <script type="text/javascript"> function deleteData(id) { $("#deleteForm").attr("action", "{{ url('/admin/delete-nearest-location/') }}" + "/" + id); } </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка