@extends('admin.layouts.app') @push('scripts_header') @endpush @section('content')
Edit Property
@csrf @method('put')
{{ Form::select('category_id', $categories, old('category_id',$property->category_id), ['class'=>'form-select', 'id'=>'category_id','placeholder' => '---Select--']) }} @if($errors->has('category_id'))
{{ $errors->first('category_id') }}
@endif
@php $display = ($property->property_status == 2) ? 'block' : 'none'; @endphp
{{ Form::select('area_id', get_areas(), old('area_id',$property->area_id), ['class'=>'form-select', 'id'=>'area_id','placeholder' => '---Select--']) }} @if($errors->has('area_id'))
{{ $errors->first('area_id') }}
@endif
{{--
@if($errors->has('property_id'))
{{ $errors->first('property_id') }}
@endif
--}}
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{ Form::select('community_id', get_community(), old('community_id',$property->community_id), ['class'=>'form-select', 'id'=>'community_id','placeholder' => '---Select--']) }} @if($errors->has('community_id'))
{{ $errors->first('community_id') }}
@endif
{{----}}
@if($errors->has('price'))
{{ $errors->first('price') }}
@endif
{{--
@if($errors->has('dollar_price'))
{{ $errors->first('dollar_price') }}
@endif
--}}
{{----}}
@if($errors->has('rooms'))
{{ $errors->first('rooms') }}
@endif
@if($errors->has('beds'))
{{ $errors->first('beds') }}
@endif
@if($errors->has('baths'))
{{ $errors->first('baths') }}
@endif
@if($errors->has('garages'))
{{ $errors->first('garages') }}
@endif
{{-- --}} @if($errors->has('year_build'))
{{ $errors->first('year_build') }}
@endif
@if($errors->has('size'))
{{ $errors->first('size') }}
@endif
{{--
@if($errors->has('street_address'))
{{ $errors->first('street_address') }}
@endif
--}}
@if($errors->has('location'))
{{ $errors->first('location') }}
@endif
@if($errors->has('city'))
{{ $errors->first('city') }}
@endif
{{--
@if($errors->has('state'))
{{ $errors->first('state') }}
@endif
@if($errors->has('postal_code'))
{{ $errors->first('postal_code') }}
@endif
--}}
{{ Form::select('country_id', get_countries(), old('country_id',$property->country_id), ['class'=>'form-select', 'id'=>'country_id','placeholder' => '---Select--']) }} @if($errors->has('country_id'))
{{ $errors->first('country_id') }}
@endif
@if($errors->has('geographic_location'))
{{ $errors->first('geographic_location') }}
@endif
{{--
@if($errors->has('property_video'))
{{ $errors->first('property_video') }}
@endif
--}}
@if($errors->has('description'))
{{ $errors->first('description') }}
@endif
@php //$plane_image_url = $property->getFirstMediaUrl('property-plane-image'); if(count($property->getMedia('property-plane-image')) > 0){ $plane_image_url = $property->getMedia('property-plane-image')->last()->getUrl(); }else{ $plane_image_url = ''; } @endphp
@if($errors->has('image'))
{{ $errors->first('image') }}
@endif [.png, .jpg, .jpeg files only, Max size: 2MB]
@php $mediaItems = $property->getMedia('property-image'); @endphp @foreach($mediaItems as $index => $mediaItem) @php $image_url = $mediaItems[$index]->getUrl() ; @endphp @endforeach
@if($errors->has('image'))
{{ $errors->first('image') }}
@endif [.png, .jpg, .jpeg files only, Max image size: 2MB, Max image no:5]
@if($errors->has('status'))
{{ $errors->first('status') }}
@endif

Agent Information
{{--@include('admin.properties.edit.agent')--}}
{{ Form::select('agent_id',get_agents(), old('agent_id',$property->agent_id), ['class'=>'form-select', 'id'=>'agent_id','placeholder' => '---Select--']) }} @if($errors->has('agent_id'))
{{ $errors->first('agent_id') }}
@endif

Amenities
@include('admin.properties.edit.amenity')
Back
@endsection @push('scripts_footer') {{-- --}} {{--@include('admin.misc.scripts.dropzone_property_plane') @include('admin.misc.scripts.dropzone_agent_image')--}} {{--@include('admin.misc.scripts.dropzone_property_image')--}} @include('admin.properties.edit.script') @endpush