@extends('layouts.dashboard.inface', ['section' => 'developments']) @section('navbar-buttons') arrow_back Volver al fraccionamiento @endsection @section('content')

{{ $development->name }}

Etapas del fraccionamiento

Cada etapa es una ficha independiente: sus modelos, precios, amenidades, planes y lotes no se mezclan con los de otra etapa. La ficha principal conserva la identidad general del proyecto.

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Etapas registradas

{{ count($stages) }}

Etapas activas

{{ collect($stages)->where('is_active', true)->count() }}

Control de inventario

{{ $access['inventory_managed'] ? 'Interno por etapa' : 'Externo por etapa' }}

@if ($canManageStages)
any()) open @endif>
add

Crear una nueva etapa

Se crea sin lotes ni configuración financiera para evitar herencias accidentales.

expand_more
@csrf
@else
Las etapas son de solo lectura porque la ficha principal es administrada por otra inmobiliaria.
@endif

Configuraciones por etapa

Vista consolidada del proyecto
@forelse ($stages as $stage) @php $configurationUrl = null; if ($stage['can_manage_inventory'] ?? false) { $configurationUrl = route('realEstate.development.edit', ['id' => $stage['stage_development_id']]); } elseif ((($stage['can_manage_catalog'] ?? false) || ($stage['can_manage_promotion'] ?? false)) && $stage['promotion_id']) { $configurationUrl = route('realEstate.developmentPromotions.edit', ['promotion' => $stage['promotion_id']]); } @endphp
{{ $stage['code'] }} {{ $stage['is_active'] ? 'Activa' : 'Inactiva' }} {{ $stage['availability_label'] }}

{{ $stage['name'] }}

@if ($stage['description'])

{{ $stage['description'] }}

@endif
#{{ $stage['sort_order'] }}
Modelos
{{ $stage['models_count'] }}
Precio desde
{{ $stage['minimum_price'] !== null ? '$'.number_format($stage['minimum_price'], 0).' '.$stage['currency'] : 'Por confirmar' }}
Lotes
{{ $stage['lots']['total'] ?? 'Externo' }}
Disponibles
{{ $stage['lots']['available'] ?? 'Consultar' }}
@if ($stage['is_active']) Ver etapa @endif @if ($configurationUrl) Configurar etapa @endif
@if ($canManageStages)
Editar datos de la etapa expand_more
@csrf @method('PUT')
@csrf @method('DELETE')
@endif
@empty
Este fraccionamiento todavía no tiene etapas. Su configuración actual continúa funcionando como configuración general.
@endforelse
@endsection