{{-- Componente Card para Emprendimientos Tokko Basado en el componente de propiedades pero adaptado para emprendimientos Props: - emprendimiento: Array con datos del emprendimiento desde Tokko API --}} @props(['emprendimiento'])
{{-- Image Section --}}
@if(isset($emprendimiento['photos']) && count($emprendimiento['photos']) > 0) {{ $emprendimiento['name'] ?? 'Emprendimiento inmobiliario' }} @else

Emprendimiento

@endif {{-- Status Badge --}} @if(isset($emprendimiento['development_status']))
@switch($emprendimiento['development_status']) @case('planning') Planificación @break @case('construction') En Construcción @break @case('completed') Terminado @break @case('pre_sale') Pre-Venta @break @default Disponible @break @endswitch
@endif {{-- Photo Count Badge --}} @if(isset($emprendimiento['photos']) && count($emprendimiento['photos']) > 1)
{{ count($emprendimiento['photos']) }}
@endif {{-- Quick Action Overlay --}}
{{-- Content Section --}}
{{-- Title --}}
{{ $emprendimiento['name'] ?? 'Emprendimiento Inmobiliario' }}
{{-- Location --}} @if(isset($emprendimiento['location']['name']))

{{ $emprendimiento['location']['name'] }}

@endif {{-- Description Preview --}} @if(isset($emprendimiento['description']) && !empty($emprendimiento['description']))

{{ \Illuminate\Support\Str::limit(strip_tags($emprendimiento['description']), 120) }}

@endif {{-- Project Features --}}
@if(isset($emprendimiento['total_units']) && $emprendimiento['total_units'] > 0)
{{ $emprendimiento['total_units'] }} Unidades
@endif @if(isset($emprendimiento['floors']) && $emprendimiento['floors'] > 0)
{{ $emprendimiento['floors'] }} Pisos
@endif @if(isset($emprendimiento['amenities']) && count($emprendimiento['amenities']) > 0)
{{ count($emprendimiento['amenities']) }} Amenities
@endif
{{-- Delivery Date --}} @if(isset($emprendimiento['delivery_date']))
Entrega: {{ \Carbon\Carbon::parse($emprendimiento['delivery_date'])->format('M Y') }}
@endif {{-- Price Section --}} @if(isset($emprendimiento['price_from']) || isset($emprendimiento['price_to']))
Desde
@if(isset($emprendimiento['currency']) && $emprendimiento['currency'] == 'USD') US$ {{ number_format($emprendimiento['price_from'] ?? 0, 0, ',', '.') }} @else $ {{ number_format($emprendimiento['price_from'] ?? 0, 0, ',', '.') }} @endif
@if(isset($emprendimiento['financing_available']) && $emprendimiento['financing_available'])
Financiación
@endif
@endif {{-- CTA Buttons --}}
{{-- Component Specific CSS --}} @push('styles') @endpush