Bill
@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_day_adjust==1) @endif --}} @if($road_to_checkout==1) @else Day Adjust
@endif