@extends('admin.layout.master') @section('title', 'AGENT RATE ALLOCATION REPORT') @section('custom_style') @endsection @section('content')
@include('admin.layout.title_header', ['title'=>'AGENT RATE ALLOCATION REPORT'])
{{ Form::open(['route' => ['frontdesk.agent_rates.report'], 'method' => 'get', 'class' => 'form-horizontal']) }}
Hotel
{{ Form::select('ware_id', $repository->ware_houses(), null, ['class' => 'form-control select2 text-right', 'id' => 'warehouse_id', 'placeholder' => 'Select Hotel']) }}
Customer List
Type
{{ Form::select('room_type', ['1' => 'Room', '2' => 'Bed'], null, ['class' => 'form-control', 'id' => 'room_type', 'placeholder' => 'Select Type']) }}
Date From
{{ Form::text('start_date', null, ['class' => 'form-control fd_bs_datepicker', 'id' => 'start_date']) }}
Date To
{{ Form::text('end_date', null, ['class' => 'form-control fd_bs_datepicker', 'id' => 'end_date']) }}
{{ Form::close() }} @if ($agent_rates) @if (count($agent_rates) > 0)

AGENT RATE ALLOCATION REPORT {{-- {{$room_type !=null ? $room_type ==1 ? '(Room)' : '(Bed)': null}} --}}

{{--
Hotel Name
--}}
Report Date: {{-- From {{$start_date->format('d-m-Y') }} To- {{$end_date->format('d-m-Y')}} --}}
@foreach ($agent_rates as $agent_rate) @endforeach
Hotel Reservation Type Bed Types Agent Name Start Date End Date Type Value Remarks
{{ $agent_rate->ware_id == 0 ? 'All' : $agent_rate->warehouse->name_eng }} {{ $agent_rate->room_type == 1 ? 'Room' : 'Bed' }} @php $bedTypes = trim($agent_rate->bed_type,",") ; @endphp @if($bedTypes) @foreach (explode(",",$bedTypes) as $bedType) @php $bedType = $fd_room_type->where('id', $bedType)->first(); @endphp {{ $bedType->name }}, @endforeach @endif {{ $agent_rate->party->name_eng }} {{ carbon()->parse($agent_rate->start_date)->format('d-m-Y') }} {{ carbon()->parse($agent_rate->end_date)->format('d-m-Y') }} {{ $agent_rate->exception_type == 1 ? 'Fixed' : 'Percentage' }} {{ $agent_rate->exception_value }} {{ $agent_rate->remarks }}

Reception

Cashier

Reservation Dept.

Customer

@else

No Data Found

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