@extends('layouts.app') @section('title', 'Edit Property') @section('page-title', 'Edit Property') @section('content')
@csrf @method('PATCH') {{-- ── Basic Information ──────────────────────────────────── --}}
Basic Information
@error('title')
{{ $message }}
@enderror
@error('listing_purpose')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('location')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('latitude')
{{ $message }}
@enderror
@error('longitude')
{{ $message }}
@enderror
{{-- ── Map Pin Widget ──────────────────────────────────────── --}} @include('property.partials._map_widget', [ 'initialLat' => old('latitude', $property->latitude), 'initialLng' => old('longitude', $property->longitude), ]) {{-- ── Type-specific Fields ────────────────────────────────── --}}
{{ ($typeLabels[$property->type] ?? ucwords(str_replace('_', ' ', $property->type))) }} Details
@include('property.partials._type_fields', ['fieldTemplates' => $fieldTemplates, 'property' => $property])
{{-- ── Size & Pricing ───────────────────────────────────────── --}}
Size & Pricing
@error('area')
{{ $message }}
@enderror
@error('area_unit')
{{ $message }}
@enderror
price_on_request) ? 'disabled' : '' }}> @error('price')
{{ $message }}
@enderror
price_on_request) ? 'checked' : '' }}>
{{-- ── Owner & Sourcing ─────────────────────────────────────── --}}
Owner & Sourcing
@error('owner_id')
{{ $message }}
@enderror
@error('sourcing_channel_id')
{{ $message }}
@enderror
@if(auth()->user()->isAdmin())
@else
@php $statusBadgeMap = [ 'published' => 'bg-success bg-opacity-10 text-success', 'under_review' => 'bg-warning bg-opacity-10 text-warning', 'unavailable' => 'bg-secondary bg-opacity-10 text-secondary', ]; $statusBadgeCls = $statusBadgeMap[$property->status] ?? 'bg-secondary bg-opacity-10 text-secondary'; @endphp {{ ucwords(str_replace('_', ' ', $property->status)) }}
@endif
{{-- ── Amenity Tags ─────────────────────────────────────────── --}}
Amenity Tags
@php $selectedTagIds = old('tag_ids', $property->tags->pluck('id')->toArray()); @endphp @foreach($tags as $tag)
id, $selectedTagIds) ? 'checked' : '' }}>
@endforeach
Cancel
{{-- ── Image Gallery ────────────────────────────────────────────── --}} @include('property.partials._image_gallery', ['property' => $property]) {{-- ── Document Vault ──────────────────────────────────────────── --}} @include('property.partials._document_vault', ['property' => $property, 'documentTypes' => $documentTypes]) @include('property.partials._owner_modal')
@endsection @push('scripts') @endpush