@extends('layouts.main') @section('title') {{ __('Update Property') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content') {!! Form::open([ 'route' => ['property.update', $id], 'method' => 'PATCH', 'data-parsley-validate', 'files' => true, 'id' => 'myForm', ]) !!}

{{ __('Details') }}


{{-- Category --}}
{{ Form::label('category', __('Category'), ['class' => 'form-label col-12 ']) }}
{{-- Title --}}
{{ Form::label('title', __('Title'), ['class' => 'form-label col-12 ']) }} {{ Form::text('title', isset($list->title) ? $list->title : '', ['class' => 'form-control ', 'placeholder' => __('Title'), 'required' => 'true', 'id' => 'title']) }}
{{-- Slug --}}
{{ Form::label('slug', __('Slug'), ['class' => 'form-label col-12 ']) }} {{ Form::text('slug', isset($list->slug_id) ? $list->slug_id : '', [ 'class' => 'form-control ', 'placeholder' => __('Slug'), 'id' => 'slug', ]) }} {{ __("Only Small English Characters, Numbers And Hypens Allowed") }}
{{-- Description --}}
{{ Form::label('description', __('Description'), ['class' => 'form-label col-12 ']) }} {{ Form::textarea('description', isset($list->description) ? $list->description : '', ['class' => 'form-control mb-3', 'rows' => '3', 'id' => '', 'required' => 'true', 'placeholder' => __('Description')]) }}
{{-- Property Type --}}
{{ Form::label('', __('Property Type'), ['class' => 'form-label col-12 ']) }} {{-- For Sell --}}
{{ Form::radio('property_type', 0, null, ['class' => 'form-check-input', 'id' => 'property_type', 'required' => true, isset($list->propery_type) && $list->getRawOriginal('propery_type') == 0 ? 'checked' : '']) }} {{ Form::label('property_type', __('For Sell'), ['class' => 'form-check-label']) }}
{{-- For Rent --}}
{{ Form::radio('property_type', 1, null, ['class' => 'form-check-input', 'id' => 'property_type', 'required' => true, isset($list->propery_type) && $list->getRawOriginal('propery_type') == 1 ? 'checked' : '']) }} {{ Form::label('property_type', __('For Rent'), ['class' => 'form-check-label']) }}
{{-- When Rent Selected Then Show Duration For Price --}}
{{ Form::label('Duration', __('Duration For Price'), ['class' => 'form-label col-12 ']) }}
{{-- Price --}}
{{ Form::label('price', __('Price') . '(' . $currency_symbol . ')', ['class' => 'form-label col-12 ']) }} {{ Form::number('price', isset($list->price) ? $list->price : '', ['class' => 'form-control ', 'placeholder' => __('Price'), 'required' => 'true', 'min' => '1', 'id' => 'price']) }}

{{ __('SEO Details') }}


{{-- Meta Title --}}
{{ Form::label('title', __('Meta Title'), ['class' => 'form-label text-center']) }}
0
{{-- Meta Image --}}
{{ Form::label('title', __('Meta Image'), ['class' => 'form-label text-center']) }}
{{-- Meta Image Show --}} @if($list->meta_image != "")
@endif {{-- Meta Description --}}
{{ Form::label('description', __('Meta Description'), ['class' => 'form-label text-center']) }}
0
{{-- Meta Keywords --}}
{{ Form::label('keywords', __('Meta Keywords'), ['class' => 'form-label']) }} ({{ __('Add Comma Separated Keywords') }})
{{-- Outdoor Facility --}}

{{ __('Near By Places') }}


@foreach ($facility as $key => $value)
{{ Form::label('description', $value->name, ['class' => 'form-check-label']) }} @if (count($value->assign_facilities)) {{ Form::number('facility' . $value->id, $value->assign_facilities[0]['distance'], ['class' => 'form-control mt-3', 'placeholder' => trans('Distance').' ('.$distanceValue.')', 'id' => 'dist' . $value->id,'min' => 0, 'max' => 99999999.9,'step' => '0.1']) }} @else {{ Form::number('facility' . $value->id, '', ['class' => 'form-control mt-3', 'placeholder' => trans('Distance').' ('.$distanceValue.')', 'id' => 'dist' . $value->id,'min' => 0, 'max' => 99999999.9 ,'step' => '0.1']) }} @endif
@endforeach
{{-- Facility --}}

{{ __('Facilities') }}


{{ Form::hidden('category_count[]', $category, ['id' => 'category_count']) }} {{ Form::hidden('parameter_count[]', $parameters, ['id' => 'parameter_count']) }} {{ Form::hidden('parameter_add', '', ['id' => 'parameter_add']) }}
@foreach ($edit_parameters as $res) @if($res->is_required == 1) @if ($res->type_of_parameter == 'file') @if (!empty($res->assigned_parameter->value)) @endif @endif
@else
@endif {{ Form::label($res->name, $res->name, ['class' => 'form-label col-12']) }} {{-- DropDown --}} @if ($res->type_of_parameter == 'dropdown') @endif {{-- Radio Button --}} @if ($res->type_of_parameter == 'radiobutton') @foreach ($res->type_values as $key => $value) assigned_parameter && $res->assigned_parameter->value == $value ? 'checked' : '' }} {{ $res->is_required == 1 ? 'required' : '' }} > {{ $value }} @endforeach @endif {{-- Number --}} @if ($res->type_of_parameter == 'number') is_required == 1 ? 'required' : '' }}> @endif {{-- TextBox --}} @if ($res->type_of_parameter == 'textbox') is_required == 1 ? 'required' : '' }}> @endif {{-- TextArea --}} @if ($res->type_of_parameter == 'textarea') @endif {{-- CheckBox --}} @if ($res->type_of_parameter == 'checkbox') @foreach ($res->type_values as $key => $value) assigned_parameter->value) && in_array($value, $res->assigned_parameter->value) ? 'Checked' : '' }} {{ $res->is_required == 1 ? 'required' : '' }}>{{ $value }} @endforeach @endif {{-- FILE --}} @if ($res->type_of_parameter == 'file') @if (!empty($res->assigned_parameter->value)) Click here to View OR @else is_required == 1 ? 'required' : '' }}> @endif @endif
{{-- @endforeach --}} @endforeach

{{ __('Location') }}


{{-- Google Map --}}
{{-- Map View --}}
{{-- Details of Map --}}
{{-- City --}}
{{ Form::label('city', __('City'), ['class' => 'form-label col-12 ']) }} {!! Form::hidden('city', isset($list->city) ? $list->city : '', ['class' => 'form-control ', 'id' => 'city']) !!} {{-- {{ Form::text('city', isset($list->city) ? $list->city : '', ['class' => 'form-control ', 'placeholder' => 'City', 'id' => 'city']) }} --}}
{{-- Country --}}
{{ Form::label('country', __('Country'), ['class' => 'form-label col-12 ']) }} {{ Form::text('country', isset($list->country) ? $list->country : '', ['class' => 'form-control ', 'placeholder' => trans('Country'), 'id' => 'country', 'required' => true]) }}
{{-- State --}}
{{ Form::label('state', __('State'), ['class' => 'form-label col-12 ']) }} {{ Form::text('state', isset($list->state) ? $list->state : '', ['class' => 'form-control ', 'placeholder' => trans('State'), 'id' => 'state', 'required' => true]) }}
{{-- Latitude --}}
{{ Form::label('latitude', __('Latitude'), ['class' => 'form-label col-12 ']) }} {!! Form::text('latitude', isset($list->latitude) ? $list->latitude : '', ['class' => 'form-control ', 'id' => 'latitude', 'step' => 'any', 'readonly' => true, 'required' => true, 'placeholder' => trans('Latitude')]) !!}
{{-- Longitude --}}
{{ Form::label('longitude', __('Longitude'), ['class' => 'form-label col-12 ']) }} {!! Form::text('longitude', isset($list->longitude) ? $list->longitude : '', ['class' => 'form-control ', 'id' => 'longitude', 'step' => 'any', 'readonly' => true, 'required' => true, 'placeholder' => trans('Longitude')]) !!}
{{-- Client Address --}}
{{ Form::label('address', __('Client Address'), ['class' => 'form-label col-12 ']) }} {{ Form::textarea('client_address', isset($list->client_address) ? $list->client_address : (system_setting('company_address') ?? ""), ['class' => 'form-control ', 'placeholder' => trans('Client Address'), 'rows' => '4', 'id' => 'client-address', 'autocomplete' => 'off', 'required' => 'true']) }}
{{-- Address --}}
{{ Form::label('address', __('Address'), ['class' => 'form-label col-12 ']) }} {{ Form::textarea('address', isset($list->address) ? $list->address : '', ['class' => 'form-control ', 'placeholder' => trans('Address'), 'rows' => '4', 'id' => 'address', 'autocomplete' => 'off', 'required' => 'true']) }}
{{-- Images --}}

{{ __('Images') }}


{{-- Title Image --}}
{{ Form::label('filepond_title', __('Title Image'), ['class' => 'form-label col-12 ']) }} title_image == '' ? 'required' : '' }} accept="image/png,image/jpg,image/jpeg"> @if ($list->title_image)
Image
@endif
{{-- 3D Image --}}
{{ Form::label('filepond_3d', __('3D Image'), ['class' => 'form-label col-12 ']) }} @if ($list->three_d_image)
Image
@endif
{{-- Gallary Images --}}
{{ Form::label('filepond2', __('Gallary Images'), ['class' => 'form-label col-12 ']) }}
@if (!empty($list->gallery)) @foreach ($list->gallery as $row)
Image
@endforeach @endif
{{-- Documents Images --}}
{{ Form::label('edit-documents', __('Documents'), ['class' => 'form-label col-12 ']) }}
@if (!empty($list->documents)) @foreach ($list->documents as $row) @endforeach @endif
{{ Form::label('video_link', __('Video Link'), ['class' => 'form-label col-12 ']) }} {{ Form::text('video_link', isset($list->video_link) ? $list->video_link : '', ['class' => 'form-control ', 'placeholder' => trans('Video Link'), 'id' => 'address', 'autocomplete' => 'off']) }}

{{ __('Accesibility') }}


is_premium ? 'checked' : '' }} id="is_premium_switch">
   
{!! Form::close() !!}
@endsection @section('script') @endsection