@extends('layouts.main') @section('title') {{ __('Ver Propiedad') }} @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') }}


{{ Form::label('category', __('Category'), ['class' => 'form-label col-12 ']) }}
{{ 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']) }}
{{ 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']) }}
{{ Form::label('', __('Property Type'), ['class' => 'form-label col-12 ']) }}
{{ 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']) }}
{{ 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']) }}
{{ Form::label('Duration', __('Duration For Price'), ['class' => 'form-label col-12 ']) }}
{{ 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') }}


{{ Form::label('title', __('Title'), ['class' => 'form-label text-center']) }}
0
{{ Form::label('title', __('Image'), ['class' => 'form-label text-center']) }}
{{ Form::label('description', __('Description'), ['class' => 'form-label text-center']) }}
0
{{ Form::label('keywords', __('Keywords'), ['class' => 'form-label']) }} (add comma separated keywords)

{{ __('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

{{ __('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']) }} @if ($res->type_of_parameter == 'dropdown') @endif @if ($res->type_of_parameter == 'radiobutton') @foreach ($res->type_values as $key => $value) assigned_parameter && $res->assigned_parameter->value == $value ? 'checked' : '' }}> {{ $value }} @endforeach @endif @if ($res->type_of_parameter == 'number') @endif @if ($res->type_of_parameter == 'textbox') @endif @if ($res->type_of_parameter == 'textarea') @endif @if ($res->type_of_parameter == 'checkbox') @foreach ($res->type_values as $key => $value) assigned_parameter->value) && $res->assigned_parameter->value == $value ? 'Checked' : '' }}>{{ $value }} @endforeach @endif @if ($res->type_of_parameter == 'file') @if (!empty($res->assigned_parameter->value)) Click here to View OR @endif @endif
{{-- @endforeach --}} @endforeach

{{ __('Location') }}


{{ Form::label('country', __('Country'), ['class' => 'form-label col-12 ']) }} {{ Form::text('country', isset($list->country) ? $list->country : '', ['class' => 'form-control ', 'placeholder' => 'country', 'id' => 'country']) }}
{{ Form::label('state', __('State'), ['class' => 'form-label col-12 ']) }} {{ Form::text('state', isset($list->state) ? $list->state : '', ['class' => 'form-control ', 'placeholder' => 'State', 'id' => 'state']) }}
{{ Form::label('city', __('City'), ['class' => 'form-label col-12 ']) }} {{ Form::text('city', isset($list->city) ? $list->city : '', ['class' => 'form-control ', 'placeholder' => 'City', 'id' => 'city']) }}
{{ Form::label('latitude', __('Latitude'), ['class' => 'form-label col-12 ']) }} {{ Form::number('latitude', isset($list->latitude) ? $list->latitude : '', ['class' => 'form-control ', 'placeholder' => 'Latitude', 'required', 'id' => 'latitude', 'step' => 'any']) }}
{{ Form::label('longitude', __('Longitude'), ['class' => 'form-label col-12 ']) }} {{ Form::number('longitude', isset($list->longitude) ? $list->longitude : '', ['class' => 'form-control', 'placeholder' => 'Longitude', 'required' => true, 'id' => 'longitude', 'step' => 'any']) }}
{{ Form::label('address', __('Client Address'), ['class' => 'form-label col-12 ']) }} {{ Form::textarea('client_address', isset($list->client_address) ? $list->client_address : '', ['class' => 'form-control ', 'placeholder' => 'Client Address', 'rows' => '4', 'id' => 'address', 'autocomplete' => 'off', 'required' => 'true']) }}
{{ 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') }}


{{ Form::label('title_image', __('Title Image'), ['class' => 'form-label col-12 ']) }} @if ($list->title_image)
Image
@endif
{{ Form::label('title_image', __('3D Image'), ['class' => 'form-label col-12 ']) }} @if ($list->threeD_image)
Image
@endif
{{ Form::label('title_image', __('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']) }}
{!! Form::close() !!}
@endsection @section('script') @endsection