@php $images = $maison->images; $first = $images->first(); @endphp
@if($first)
 }})
@else
 }})
@endif
@if($images->count() > 1)
@foreach($images as $key => $image)
@endforeach
@endif
{{ $maison->title }}
@include('front.partials.report-listing', ['type' => 'maison', 'id' => $maison->id])
{{ $maison->city }}{{ $maison->country ? ', ' . $maison->country : '' }}
@if($maison->reducted_price > 0 && $maison->reducted_price < $maison->price)
{{ display_price($maison->reducted_price, $maison->currency) }}
{{ display_price($maison->price, $maison->currency) }}
@else
{{ display_price($maison->price, $maison->currency) }}
@endif
@php
$typeLabel = $maison->property_type ? __('viki.ptype_'.$maison->property_type) : null;
$rentalLabel = $maison->rental_type ? __('viki.rtype_'.$maison->rental_type) : null;
@endphp
@if($typeLabel || $rentalLabel)
@if($typeLabel){{ $typeLabel }}@endif
@if($rentalLabel){{ $rentalLabel }}@endif
@endif
{{-- Calendrier de disponibilités (rendu côté JS, sans rechargement) --}}
@php
$calPeriods = $maison->periods->map(function ($p) {
return [
'start' => $p->start_date->toDateString(),
'end' => $p->end_date->toDateString(),
'type' => $p->type,
];
})->values();
$calWeekdays = [
__('viki.weekday_mon'), __('viki.weekday_tue'), __('viki.weekday_wed'),
__('viki.weekday_thu'), __('viki.weekday_fri'), __('viki.weekday_sat'),
__('viki.weekday_sun'),
];
@endphp
{{ __('viki.cal_legend_available') }}
{{ __('viki.cal_legend_booked') }}
{{-- Récapitulatif prix + bouton de demande --}}
@if(session('booking_success'))
{{ session('booking_success') }}
@endif
@if(session('booking_error'))
{{ session('booking_error') }}
@endif
@auth
@else
{{ __('viki.booking_login_to_book') }}
@endauth
{{-- Règlement --}}
{{ $maison->pets_allowed ? '✅' : '🚫' }} {{ __('viki.rule_animals') }}
{{ $maison->smoking_allowed ? '✅' : '🚫' }} {{ __('viki.rule_smoking') }}
{{ $maison->parties_allowed ? '✅' : '🚫' }} {{ __('viki.rule_parties') }}
{{ $maison->children_allowed ? '✅' : '🚫' }} {{ __('viki.rule_children') }}
@if($maison->owner)
{{ __('viki.detail_proposed_by') }} {{ $maison->owner->name }}
@endif