Bill
@include('frontdesk.share.email')
@php $road_to_checkout=1; $checkin_time = get_checkin_time(1); //store checkin time $current_time = date("H:i:s"); if($checkin_time>$current_time){ //if customer want to checkout before day start $inc_day = '-1 day'; }else{ $inc_day = '+0 day'; } @endphp @foreach ($checkin_room_details as $key=>$crd) @if(date('Y-m-d',strtotime($crd->end_date_time)) < date('Y-m-d',strtotime(today().$inc_day))) @php $road_to_checkout=0; @endphp @endif @endforeach {{-- @foreach ($checkin_room_details as $key=>$crd) @if(date('Y-m-d',strtotime($crd->end_date_time)) > date('Y-m-d',strtotime(today()))) @php $road_day_adjust=1; @endphp @endif @endforeach --}}
@if($road_to_checkout==1) @php $consider_time = $store_info->check_out_consider_time ?? 0; $cal_checkin_date_time = new DateTime($booking_info->check_in_date); $cal_current_date_time = new DateTime(date('Y-m-d H:i:s')); $interval = $cal_checkin_date_time->diff($cal_current_date_time); $totalCheckinMinutes = $interval->days * 24 * 60; $totalCheckinMinutes += $interval->h * 60 + $interval->i; @endphp @if($totalCheckinMinutes < $consider_time)
@else @endif @php $is_early_checkout_auto_adjustment_setting = is_early_checkout_auto_adjustment(); @endphp
@else Day Adjust
@endif