@extends('layout.base') @section('title', 'Planning - ' . $dates[0]['date']->format('d-m-Y')) @php $planning_table = true; @endphp @section('content')

Booking Details

Today
{{ csrf_field() }}
@can('add.booking') New Booking @endcan
@foreach($dates as $date) @endforeach @foreach($rooms as $room) @for($i=0; $i<$room->beds; $i++) {{-- loop through beds --}} @if ($i>0) layout_splits)) class="layout-split" @endif> @endif @for($d=0; $d<20; $d++) {{-- loop through days for this bed --}} @php $date=$dates[$d]; @endphp @if(!$room->bookings->isEmpty() && $booking = $room->hasBooking($date['date'], $i+1)) @php $d += ($booking->toShow($dates)-1) @endphp @elseif (!$room->bookings->isEmpty() && $room->isBookedAsWhole($date['date'])) @else @can('add.booking') @else @endcan @endif @endfor @endfor @endforeach
Accommodation Room {{ $date['day'] }}
{{ $date['date_str'] }}
{{ $room->name }}
@if($room->id==2)   {{ $i+ 1001 }} @else   {{ $i+1 }} @endif {{ $booking->getGuest($i)->fullname }} @if ($booking->isFirst($i)) (Rs. {{ $booking->basePrice }}) @if (!$booking->extras->isEmpty()) @foreach ($booking->extras as $extra) @isset($extra->icon) @if ($loop->first) — @endif {!! $extra->icon !!} @endisset @endforeach @endif @endif
@endsection