Aucun tarif disponible pour ces dates
Essayez d'autres dates
@php
$mealTypes = [
'nomeal' => 'Sans repas',
'breakfast' => 'Petit-déjeuner',
'halfboard' => 'Demi-pension',
'fullboard' => 'Pension complète',
'all-inclusive' => 'All inclusive'
];
@endphp
@foreach($rates as $rate)
@php
$totalPrice = 0;
$currency = 'EUR';
$paymentType = null;
if (isset($rate['payment_options']['payment_types'][0])) {
$paymentType = $rate['payment_options']['payment_types'][0];
}
if ($paymentType) {
$totalPrice = floatval($paymentType['show_amount'] ?? $paymentType['amount'] ?? 0);
$currency = $paymentType['show_currency_code'] ?? $paymentType['currency_code'] ?? 'EUR';
} elseif (isset($rate['daily_prices']) && is_array($rate['daily_prices'])) {
foreach ($rate['daily_prices'] as $dailyPrice) {
$totalPrice += floatval($dailyPrice);
}
}
$pricePerNight = ($nights > 0 && $totalPrice > 0) ? $totalPrice / $nights : 0;
$freeCancellation = isset($paymentType['cancellation_penalties']['free_cancellation_before']);
$mealType = $rate['meal'] ?? 'nomeal';
if (is_array($mealType)) {
$mealType = $mealType['value'] ?? 'nomeal';
}
@endphp
{{ $mealTypes[$mealType] ?? 'Sans repas' }}
@if($freeCancellation)
✅ Annulation gratuite
@endif
{{ $rate['room_name'] ?? 'Chambre standard' }}
{{ number_format($totalPrice, 2) }} {{ $currency }}
{{ number_format($pricePerNight, 2) }} {{ $currency }}/nuit
Total pour {{ $nights }} nuit(s)
@endforeach