@extends('admin.layouts.app') @section('content')
Edit Property
@csrf @method('put')
{{ Form::select('category_id', get_categories(), old('category_id',$property->category_id), ['class'=>'form-select', 'id'=>'category_id','placeholder' => '---Select property type---']) }} @if($errors->has('category_id'))
{{ $errors->first('category_id') }}
@endif
@if($errors->has('property_id'))
{{ $errors->first('property_id') }}
@endif
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if($errors->has('price'))
{{ $errors->first('price') }}
@endif
@if($errors->has('area'))
{{ $errors->first('area') }}
@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('google_address'))
{{ $errors->first('google_address') }}
@endif
--}}
@if($errors->has('street_address'))
{{ $errors->first('street_address') }}
@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 country---']) }} @if($errors->has('country'))
{{ $errors->first('country') }}
@endif
@if($errors->has('size'))
{{ $errors->first('size') }}
@endif
@if($errors->has('property_video'))
{{ $errors->first('property_video') }}
@endif
@if($errors->has('description'))
{{ $errors->first('description') }}
@endif
@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
Back
@endsection @push('scripts_footer') @include('admin.misc.scripts.dropzone_property_image') @endpush