@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
{{__('obs.agent')}} {{__('obs.rate_allocation')}} {{__('obs.list')}}
{{__('obs.agent')}} {{__('obs.rate')}} {{__('obs.create')}}
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
{{--
AGENT RATE ALLOCATION REPORT
--}}

{{__('obs.agent')}} {{__('obs.rate_allocation')}} {{__('obs.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
{{__('obs.hotel')}} {{__('obs.reservation')}} {{__('obs.type')}} {{__('obs.agent')}} {{__('obs.name')}} {{__('obs.start_date')}} {{__('obs.end_date')}} {{__('obs.exception')}} {{__('obs.type')}} {{__('obs.value')}} {{__('obs.room')}} {{__('obs.type')}} {{__('obs.remarks')}} {{__('obs.action')}}
{{ $agent_rate->ware_id == 0 ? 'All' : $agent_rate->warehouse->name_eng }} {{ $agent_rate->room_type == 1 ? __('obs.room') : __('obs.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 ? __('obs.fixed') : __('obs.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