Basic info
Room ratio
Linking specific times to ratios is optional and is only relevant if you have different ratios at different times of the day.
If times do not apply, select “Ratio (Without time period)”
@if($is_update && isset($room->ratioByTimeEnabled) && $room->ratioByTimeEnabled == true && isset($room->ratioByTime) && !empty($room->ratioByTime))
@foreach($room->ratioByTime as $key => $ratio)
@php
$fromTime = $toTime = "";
if(isset($ratio->fromTime)){
$fromTime = \Carbon\Carbon::createMidnightDate(date('Y-m-d'))->addMinutes($ratio->fromTime)->format('h:i A');
}
if(isset($ratio->toTime)){
$toTime = \Carbon\Carbon::createMidnightDate(date('Y-m-d'))->addMinutes($ratio->toTime)->format('h:i A');
}
@endphp
@endforeach
@else
@endif