@props([ 'property', 'showBadge' => true, 'showFeatures' => true, 'cardClass' => 'property-card-modern' ])
{{-- Price Badge --}} @if($showBadge && isset($property['operations'][0]['prices'][0]))
@if($property['operations'][0]['prices'][0]['currency'] == 'USD') US$ {{ number_format($property['operations'][0]['prices'][0]['price'], 0, ',', '.') }} @else $ {{ number_format($property['operations'][0]['prices'][0]['price'], 0, ',', '.') }} {{ strtoupper($property['operations'][0]['prices'][0]['currency']) }} @endif
@elseif($showBadge) {{--
Consultar
--}} @endif {{-- Property Image --}}
{{ $property['publication_title'] }}
{{-- Property Content --}}
{{ Str::limit($property['publication_title'], 35) }}

{{ $property['real_address'] ?? 'Ubicación no disponible' }} @if(isset($property['location']['name']))
{{ $property['location']['name'] }} @endif

{{-- Property Features --}} @if($showFeatures)
@if(isset($property['suite_amount']) && $property['suite_amount'] > 0) {{ $property['suite_amount'] }} dorm @endif @if(isset($property['bathroom_amount']) && $property['bathroom_amount'] > 0) {{ $property['bathroom_amount'] }} baños @endif @if(isset($property['parking_lot_amount']) && $property['parking_lot_amount'] > 0) {{ $property['parking_lot_amount'] }} coch @endif @if(isset($property['surface']) && $property['surface'] > 0) {{ number_format($property['surface']) }} m² @endif
@endif {{-- Operation Badge and Action Button --}}
{{-- @if(isset($property['operations'][0]['operation_type'])) @if($property['operations'][0]['operation_type'] == 1) Venta @elseif($property['operations'][0]['operation_type'] == 2) Alquiler @elseif($property['operations'][0]['operation_type'] == 3) Alq. Temporal @else Consultar @endif @else @endif --}} Ver detalles