@extends('layouts.admin') @section('title', 'Editar Propiedad') @push('styles') @endpush @section('content')

Editar Propiedad #{{ $property->id }}

@csrf @method('PUT')
{{-- Seleccionar Agencia/Agente si es admin --}} @if(auth()->user()->hasRole('admin'))

Asignación

@error('agency_id'){{ $message }}@enderror
@error('agent_id'){{ $message }}@enderror
@endif {{-- Si es agencia, mostrar selector de agente --}} @if(auth()->user()->hasRole('agency_admin') && $agents->count() > 0)

Asignar Agente

@error('agent_id'){{ $message }}@enderror
@endif {{-- ========== 1. DATOS DEL PROPIETARIO ========== --}}

1. Datos del Propietario (o Apoderado)

@error('owner_name'){{ $message }}@enderror
@error('owner_id_number'){{ $message }}@enderror
@error('owner_marital_status'){{ $message }}@enderror
@error('owner_phone'){{ $message }}@enderror
@error('owner_email'){{ $message }}@enderror
owner_in_venezuela) == 1 ? 'checked' : '' }}>
owner_in_venezuela) === '0' ? 'checked' : '' }}>
has_power_of_attorney) == 1 ? 'checked' : '' }}>
has_power_of_attorney) === '0' ? 'checked' : '' }}>
{{-- ========== 2. DATOS BÁSICOS DEL INMUEBLE ========== --}}

2. Datos Básicos del Inmueble

@error('property_type'){{ $message }}@enderror
@error('city'){{ $message }}@enderror
@error('urbanization'){{ $message }}@enderror
@error('street_address'){{ $message }}@enderror
@error('building_name'){{ $message }}@enderror
@error('floor_number'){{ $message }}@enderror
@error('house_apartment_number'){{ $message }}@enderror
@error('land_area'){{ $message }}@enderror
@error('construction_area'){{ $message }}@enderror
@error('antiquity_years'){{ $message }}@enderror
@error('status'){{ $message }}@enderror
show_on_platform) ? 'checked' : '' }}>
{{-- ========== 3. DISTRIBUCIÓN ========== --}}

3. Distribución

@error('rooms_total'){{ $message }}@enderror
@error('rooms_main'){{ $message }}@enderror
@error('rooms_auxiliary'){{ $message }}@enderror
@error('rooms_service'){{ $message }}@enderror
@error('bathrooms_total'){{ $message }}@enderror
@error('bathrooms_full'){{ $message }}@enderror
@error('bathrooms_half'){{ $message }}@enderror
@error('parking_spaces'){{ $message }}@enderror
parking_covered) == 1 ? 'checked' : '' }}>
parking_covered) === '0' ? 'checked' : '' }}>
parking_uncovered) == 1 ? 'checked' : '' }}>
parking_uncovered) === '0' ? 'checked' : '' }}>
has_storage_room) == 1 ? 'checked' : '' }}>
has_storage_room) === '0' ? 'checked' : '' }}>
{{-- ========== 4. SERVICIOS Y AMENIDADES ========== --}}

4. Servicios y Amenidades

Agua
has_deep_well) == 1 ? 'checked' : '' }}>
has_deep_well) === '0' ? 'checked' : '' }}>
@error('aerial_tank_capacity'){{ $message }}@enderror
@error('underground_tank_capacity'){{ $message }}@enderror
has_hydroniumatic) == 1 ? 'checked' : '' }}>
has_hydroniumatic) === '0' ? 'checked' : '' }}>
@error('water_service_frequency'){{ $message }}@enderror
Electricidad
has_generator) == 1 ? 'checked' : '' }}>
has_generator) === '0' ? 'checked' : '' }}>
@error('generator_coverage'){{ $message }}@enderror
@error('voltage'){{ $message }}@enderror
Conectividad y TV
@error('internet_type'){{ $message }}@enderror
@error('internet_provider'){{ $message }}@enderror
has_cable_tv) == 1 ? 'checked' : '' }}>
has_cable_tv) === '0' ? 'checked' : '' }}>
has_satellite_tv) == 1 ? 'checked' : '' }}>
has_satellite_tv) === '0' ? 'checked' : '' }}>
@error('satellite_tv_provider'){{ $message }}@enderror
@error('gas_type'){{ $message }}@enderror
Seguridad y Amenidades
has_24h_security) == 1 ? 'checked' : '' }}>
has_electric_fence) == 1 ? 'checked' : '' }}>
has_pool) == 1 ? 'checked' : '' }}>
has_barbecue_area) == 1 ? 'checked' : '' }}>
has_playground) == 1 ? 'checked' : '' }}>
{{-- ========== 5. ESTATUS LEGAL ========== --}}

5. Estatus Legal

has_property_document) == 1 ? 'checked' : '' }}>
has_cadastral_certificate) == 1 ? 'checked' : '' }}>
cadastral_in_owner_name) == 1 ? 'checked' : '' }}>
has_municipal_solvency) == 1 ? 'checked' : '' }}>
has_seniat_certificate) == 1 ? 'checked' : '' }}>
has_utilities_solvency) == 1 ? 'checked' : '' }}>
has_condo_solvency) == 1 ? 'checked' : '' }}>
is_mortgage_free) == 1 ? 'checked' : '' }}>
needs_mortgage_release) == 1 ? 'checked' : '' }}>
{{-- ========== 6. CONDICIONES COMERCIALES ========== --}}

6. Condiciones Comerciales

@error('operation_type'){{ $message }}@enderror
@error('price'){{ $message }}@enderror
price_negotiable) == 1 ? 'checked' : '' }}>
price_negotiable) === '0' ? 'checked' : '' }}>
@error('payment_methods'){{ $message }}@enderror
@error('commission_percentage'){{ $message }}@enderror
@error('capture_type'){{ $message }}@enderror
{{-- ========== 7. INVENTARIO Y OBSERVACIONES ========== --}}

7. Inventario y Observaciones

@error('furnished_status'){{ $message }}@enderror
@error('inventory_details'){{ $message }}@enderror
@error('repair_details'){{ $message }}@enderror
@error('observations'){{ $message }}@enderror
{{-- ========== 7. MULTIMEDIA ========== --}}

7. Fotos, Videos y Archivos

{{-- Fotos existentes --}} @if($property->photos->count() > 0)
@foreach($property->photos as $photo)
{{ $photo->file_name }} @if($photo->is_primary)
Principal
@endif
@endforeach

@endif {{-- Nuevas fotos --}}

Puede seleccionar múltiples fotos. Se agregarán a las existentes.

Formatos: JPG, PNG, WebP. Máx 5MB por foto.

{{-- Video URL --}}
@error('video_url'){{ $message }}@enderror URL de YouTube o Vimeo
@if($property->videos->count() > 0)
Videos actuales:
    @foreach($property->videos as $video)
  • @if(str_starts_with($video->file_path, 'http')) Ver video externo @else
    {{ $video->file_name }} ({{ $video->formatted_size }}) @endif
  • @endforeach
@endif
{{-- Videos locales --}}

Puede seleccionar múltiples videos. Se agregarán a los existentes.

Formatos: MP4, AVI, MOV, MKV, WMV, FLV, WebM. Máx 1GB por archivo.

{{-- Archivos adjuntos existentes --}} @if($property->files->count() > 0)
    @foreach($property->files as $file)
  • {{ $file->file_name }} ({{ $file->formatted_size }}) @if($file->file_path && !str_starts_with($file->file_path, 'http')) @endif
  • @endforeach

@endif {{-- Nuevos archivos adjuntos --}}
Planos, contratos, certificados, etc. Formatos: PDF, DOC, XLS, ZIP. Máx 10MB por archivo.
{{-- ========== 8. UBICACIÓN EN MAPA ========== --}}

8. Ubicación en Mapa

Haga clic en el mapa para seleccionar la ubicación exacta de la propiedad o ingrese las coordenadas manualmente.

@error('latitude'){{ $message }}@enderror
@error('longitude'){{ $message }}@enderror
@error('map_address'){{ $message }}@enderror
{{-- Mapa --}}
Venezuela por defecto. Zoom para ubicar la propiedad.
@endsection @push('scripts') {{-- Leaflet CSS y JS para el mapa --}} @endpush