@extends('layouts.main') @section('title') {{ __('Update Product') }} @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']) }}
{{-- 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']) }}
{{-- 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->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->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', __('Title'), ['class' => 'form-label text-center']) }}
0
{{-- Meta Image --}} @if($list->meta_image != "")
@else
@endif {{ Form::label('title', __('Image'), ['class' => 'form-label text-center']) }}
{{-- Meta Image Show --}} @if($list->meta_image != "")
@endif {{-- Meta Description --}}
{{ Form::label('description', __('Description'), ['class' => 'form-label text-center']) }}
0
{{-- Meta Keywords --}}
{{ Form::label('keywords', __('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::text('facility' . $value->id, $value->assign_facilities[0]['distance'], ['class' => 'form-control mt-3', 'placeholder' => 'distance', 'id' => 'dist' . $value->id]) }} @else {{ Form::text('facility' . $value->id, '', ['class' => 'form-control mt-3', 'placeholder' => 'distance', 'id' => 'dist' . $value->id]) }} @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)
{{ 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' : '' }}> {{ $value }} @endforeach @endif {{-- Number --}} @if ($res->type_of_parameter == 'number') @endif {{-- TextBox --}} @if ($res->type_of_parameter == 'textbox') @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' : '' }}>{{ $value }} @endforeach @endif {{-- FILE --}} @if ($res->type_of_parameter == 'file') @if (!empty($res->assigned_parameter->value)) Click here to View OR @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' => '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' => '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' => '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' => '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->threeD_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
{{ 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' => 'Video Link', 'id' => 'address', 'autocomplete' => 'off']) }}

{{ __('accesibility') }}


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