@if (session('error'))
{{session('error')}}
@elseif (session('success'))
{{session('success')}}
@endif
Congratulations!Your booking is confirmed.
Location
{{$booking->location}}
Date
{{date('d M, Y', strtotime($booking->start_date))}} {{date('g:i A',strtotime($booking->start_time))}} - {{date('d M, Y', strtotime($booking->end_date))}} {{date('g:i A',strtotime($booking->end_time))}}
@foreach($bookings as $book)
@if($book->type=='studio')
Type of studio
{{$studio->name}}
{!! $studio->landingPage->description !!}
@php $data = json_decode($book->data) @endphp
@if(isset($data->daily))
@foreach($data->daily as $daily)
{{$daily}}pts x 1day
= {{$daily}} pts
@endforeach
@endif
@if(isset($data->hourly))
@foreach($data->hourly as $hr)
@php
$hourly_data = explode('|',$hr);
$hourly_points = $hourly_data[1]/$hourly_data[0];
@endphp
{{$hourly_points}}pts x {{$hourly_data[0]}}hours
= {{$hourly_data[1]}} pts
@endforeach
@endif
@endif
@if($book->type=='rental')
Equipment
{{$equipment->name}}
{!! $equipment->description !!}
@php $data = json_decode($book->data) @endphp
@if(isset($data->daily))
@foreach($data->daily as $daily)
{{$daily}}pts x 1day
= {{$daily}} pts
@endforeach
@endif
@if(isset($data->hourly))
@foreach($data->hourly as $hr)
@php
$hourly_data = explode('|',$hr);
$hourly_points = $hourly_data[1]/$hourly_data[0];
@endphp
{{$hourly_points}}pts x {{$hourly_data[0]}}hours
= {{$hourly_data[1]}} pts
@endforeach
@endif
@if($isCheckedIn)
{!! QrCode::size(150)->generate(url('equipment-checkout/'.$bookingId.'/'.$equipment->id)) !!}
@else
CheckedOut
@endif
@endif
@if($book->type=='resource')
Additional support
@if(is_null($resource->profile_pic))
}})
@else
}})
@endif
{{$resource->fname}} {{$resource->lname}}
@if(isset($resource->resourceName->name))
{{$resource->resourceName->name}}
@endif
{!! $resource->description !!}
@php $data = json_decode($book->data) @endphp
@if(isset($data->daily))
@foreach($data->daily as $daily)
{{$daily}}pts x 1day
= {{$daily}} pts
@endforeach
@endif
@if(isset($data->hourly))
@foreach($data->hourly as $hr)
@php
$hourly_data = explode('|',$hr);
$hourly_points = $hourly_data[1]/$hourly_data[0];
@endphp
{{$hourly_points}}pts x {{$hourly_data[0]}}hours
= {{$hourly_data[1]}} pts
@endforeach
@endif
@endif
@php $guest_amount = 0; @endphp
@if($book->type=='guest')
Additional Guest
@foreach($guests['guest'] as $guest)
{{$guest['fname']}} {{$guest['lname']}} ({{$guest['email']}})
@if(($loop->index +1) > $guest['free_guest'])
Guest Fee
= {{$guest['additional_guest_points']}} pts
@php $guest_amount += $guest['additional_guest_points']; @endphp
@else
@endif
@endforeach
@endif
@endforeach
Booking cost
{{$booking->total_points + $guest_amount}} pts
Points left
{{session()->get('point_balance')}} pts
@if($booking->status==0)
@php $booking_time = strtotime($booking->end_date.' '.$booking->end_time); @endphp
@if(time() > $booking_time)
Not marked as complete
@else
Invite guest
@endif
@elseif($booking->status==1)
Booking Completed
@elseif($booking->status==2)
Booking Cancelled
@endif