@if(isset(session()->get('temp-booking-points')['studio'][session()->get('temp-booking-studio-selection')]) && $type=='studio') @php $studio = session()->get('temp-booking-points')['studio'][session()->get('temp-booking-studio-selection')]; $hours = 0;@endphp @if(isset($studio['daily'])) {{count($studio['daily'])}}D @endif @if(isset($studio['hourly'])) @foreach($studio['hourly'] as $hr) @php $hourly_data = explode('|',$hr); $hours = $hours + $hourly_data[0]; @endphp @endforeach {{$hours}}H @endif @endif @if(isset(session()->get('temp-booking-points')['equipment'][session()->get('temp-booking-equipment-selection')]) && $type=='equipment') @php $equipment = session()->get('temp-booking-points')['equipment'][session()->get('temp-booking-equipment-selection')]; $hours = 0;@endphp @if(isset($equipment['daily'])) {{count($equipment['daily'])}}D @endif @if(isset($equipment['hourly'])) @foreach($equipment['hourly'] as $hr) @php $hourly_data = explode('|',$hr); $hours = $hours + $hourly_data[0]; @endphp @endforeach {{$hours}}H @endif @endif @if(isset(session()->get('temp-booking-points')['resource'][session()->get('temp-booking-resource-selection')]) && $type=='resource') @php $resource = session()->get('temp-booking-points')['resource'][session()->get('temp-booking-resource-selection')]; $hours = 0;@endphp @if(isset($resource['daily'])) {{count($resource['daily'])}}D @endif @if(isset($resource['hourly'])) @foreach($resource['hourly'] as $hr) @php $hourly_data = explode('|',$hr); $hours = $hours + $hourly_data[0]; @endphp @endforeach {{$hours}}H @endif @endif

@csrf
Where
Start
@php $startTime = session('booking-form.start_time'); $formattedTimeStart = $startTime ? \Carbon\Carbon::createFromFormat('H:i:s', $startTime)->format('h:i A') : '09:00 AM'; // default value @endphp
 
End
@php $endTime = session('booking-form.end_time'); $formattedTimeEnd = $endTime ? \Carbon\Carbon::createFromFormat('H:i:s', $endTime)->format('h:i A') : '05:00 PM'; // default value @endphp
 
@include('frontend.booking.price-box')
@if($type=='resource') Review Booking @else Skip @endif