@extends('../layout/home-layout') @section('title','Room Allocation Forecast') @section('home-content')
PRINT FORECAST
@forelse ($table as $row) @empty @endforelse @forelse($rooms as $room) @forelse ($table as $mahaloop) @foreach ($table as $podiloop) @if($mahaloop['date'] == $podiloop['date']) @if ($podiloop['rooms']==null) @else @php $checked = 0; $status = null; $type = null; $ref_id = null; foreach ($podiloop['rooms'] as $roomloop) { if($roomloop['room_id'] == $room->room_id){ $checked = 1; $status = $roomloop['status']; $type = $roomloop['type']; $ref_id = $roomloop['ref_id']; break; }else{ } } @endphp @if($checked==1) @switch($type) @case(1) {{-- if this is this is a reservation show this button --}} @break @case(2) {{-- if this is this is a booking show this button --}} @break @default @endswitch @else @endif @endif @endif @endforeach @empty @endforelse @empty @endforelse
Room{{$row['date']}}
{{$room->room_name}}Vacant{{$status}}{{$status}}Vacant
{{-- end of modal --}} @endsection @section('script-area') @if(isset($s_date)&&isset($e_date)) @endif @endsection