@extends('admin.layout.master') @section('custom_style') @endsection @section('content')
@if ($errors->any())
@endif
RATE ALLOCATION REPORT
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{ Form::open(['route' => ['frontdesk.room_rates.report'], 'method' => 'get', 'class' => 'form-horizontal']) }}
{{ Form::select('ware_id', $repository->ware_houses(), null, ['class' => 'form-control text-right', 'id' => 'warehouse_id', 'placeholder' => 'Select Hotel']) }}
{{ Form::select('type_id', ['1' => 'Room', '2' => 'Bed'], null, ['class' => 'form-control', 'id' => 'room_type', 'required', 'placeholder' => 'Select Type']) }}
{{--
Status
{{ Form::select('status', ['1' => 'Pending', '2' => 'Approved'], null, ['class' => 'form-control', 'id' => 'party_id', 'placeholder' => 'Select Status']) }}
--}}
{{ Form::text('start_date',null,['class'=>'form-control fd_bs_datepicker','id'=>'start_date','required'] )}}
{{ Form::text('end_date',null,['class'=>'form-control fd_bs_datepicker','id'=>'end_date','required'] )}}
{{ Form::close() }}
@if ($room_allocations) @if (count($room_allocations) > 0)
Rate Allocation Report ({{ $room_type == 1 ? 'Room' : 'Bed' }})
{{--
Warehouse Name
--}}
Report Date: From {{ carbon()->parse($start_date)->format('d-m-Y') }} To- {{ carbon()->parse($end_date)->format('d-m-Y') }}
@php $days = count($date_range); @endphp @foreach ($date_range as $date) @endforeach @foreach ($room_allocations as $room_type => $room_allocation) @foreach ($date_range as $date) @php $check = $room_allocation->where('date', $date)->first(); @endphp @if ($check != null) @else @endif @endforeach @endforeach
Room Type {{ $date->format('d') }}
{{ $date->format('D') }}
{{ $room_allocation[0]['room_type_name'] }}{{ $check['rate'] }}

@else

No Data Found

@endif @endif @endsection @section('script') @endsection