@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
@if ($errors->any())
@endif
AGENT RATE ALLOCATION REPORT
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{ Form::open(['route' => ['frontdesk.agent_rates.report'], 'method' => 'get', 'class' => 'form-horizontal']) }}
Hotel
{{ Form::select('ware_id', $repository->ware_houses(), null, ['class' => 'form-control text-right', 'id' => 'warehouse_id', 'placeholder' => 'Select Holtel']) }}
Customer List
{{ Form::select('party_id', $repository->parties(), null, ['class' => 'form-control', 'id' => 'party_id','placeholder' => 'Select Agent']) }}
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 date_picker','id'=>'start_date','required'] )}}
Date To
{{ Form::text('end_date', null,['class'=>'form-control date_picker','id'=>'end_date','required'] )}}
{{ Form::close() }}
@if ($agent_rates) @if (count($agent_rates) > 0)

Rate Allocation Report ({{$agent_rates->first()->room_type == 1 ? 'Room' : 'Bed'}})

Hotel Name
Report Date: From
@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' }} @foreach (json_decode($agent_rate->bed_type) as $bedType ) @php $bedType = $room_type->where('id', $bedType)->first(); @endphp {{$bedType->name}} @endforeach {{ $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 }}

@else

No Data Found

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