@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
AGENT RATE ALLOCATION LIST
Agent Rate Create
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{ Form::open(['route' => ['frontdesk.agent_rates.index'], 'method' => 'get', 'class' => 'form-horizontal']) }}
Hotel
{{ Form::select('ware_id', $repository->ware_houses(), null, ['class' => 'form-control text-right', 'id' => 'warehouse_id', 'placeholder' => 'Select Hotel']) }}
Customer List
{{-- {{ Form::select('party_id', $repository->parties(), null, ['class' => 'form-control select2', 'id' => 'party_id', 'placeholder' => 'Select Agent']) }} --}}
Status
{{ Form::select('status', ['2' => 'Active','1' => 'Inactive'], null, ['class' => 'form-control', 'id' => 'party_id']) }}
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() }}
{{--
AGENT RATE ALLOCATION REPORT
--}}

AGENT RATE ALLOCATION LIST {{ $search_data ? $agent_rates->first() ? $agent_rates->first()->status == 1 ? '(Inactive)' : '(Active)' : null : null}}

@if($search_data ) {{--
{{get_warehouse_name(2)}}
--}} {{--
Report Date: From {{$start_date->format('d-m-Y') }} To- {{$end_date->format('d-m-Y')}}
--}} @endif
@if (!empty($agent_rates)) @foreach ($agent_rates as $agent_rate) @endforeach @endif
Hotel Reservation Type Agent Name Start Date End Date Exception Type Value Room Type Remarks Action
{{ $agent_rate->ware_id == 0 ? 'All' : $agent_rate->warehouse->name_eng }} {{ $agent_rate->room_type == 1 ? 'Room' : 'Bed' }} {{ $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 }} @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->remarks }}
@endsection @section('script') @endsection