@php
function getFormattedDateRange($checkinDate, $checkoutDate)
{
if ($checkinDate && $checkoutDate) {
$checkIn = \Carbon\Carbon::parse($checkinDate);
$checkOut = \Carbon\Carbon::parse($checkoutDate);
if ($checkIn->format('j M Y') === $checkOut->format('j M Y')) {
return $checkIn->format('j M');
} elseif ($checkIn->format('M') === $checkOut->format('M')) {
return $checkIn->format('j') . ' to ' . $checkOut->format('j M');
} else {
return $checkIn->format('j M') . ' to ' . $checkOut->format('j M');
}
} elseif ($checkinDate) {
return \Carbon\Carbon::parse($checkinDate)->format('j M');
} elseif ($checkoutDate) {
return \Carbon\Carbon::parse($checkoutDate)->format('j M');
}
return null;
}
@endphp
| S.No. | Hotel | Room Categories | Check In/ Out Date |
Total Rates per room
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $room['hotel'] }} |
|
|
|
|||||
|
Grand Total:
|
{{ $offerData['currency'] }}
{!! formatPrice($offerData['grand_total']) !!}
{{ $offerData['grand_total_sub_text'] ?? '' }}
| --}}
Grand Total:
{{ $offerData['currency'] }}
{!! formatPrice($offerData['grand_total']) !!}
{{ $offerData['grand_total_sub_text'] ?? '' }}
|
|||||||