@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
{{__('obs.user')}} {{__('obs.collection')}}
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
@include("frontdesk.report.report_header")

{{ __('obs.collection_details') }}

{{-- --}} @if (!empty($user_collection_details)) @php $i = 1; @endphp @foreach ($user_collection_details as $reservaion_id => $data) @php $received = round($data->whereIn('voucher_type', [1, 4])->sum('amount'), 2); $refund = round($data->whereIn('voucher_type', [5])->sum('amount'), 2); $discount = $data->whereIn('ledger_id',[getInitDataWithKeyWord('discount')->ledger_id,getInitDataWithKeyWord('commission')->ledger_id])->sum('amount'); @endphp {{-- --}} @endforeach @endif
#{{ __('obs.sl') }} {{ __('obs.collect_by') }} {{ __('obs.date') }} {{ __('obs.reservation_no') }} {{ __('obs.checkin_no') }} {{ __('obs.party') }} {{ __('obs.received') }} {{ __('obs.refund') }}Check Box  
{{ $i++ }} {{ $data->first() ? $data->first()->user ? $data->first()->user->name : null : null}} {{ $data->first() ? date("d-m-Y",strtotime($data->first()->date)) : null}} {{ $data->first() ? $data->first()->reservation ? $data->first()->reservation->resv_code : null : null}} {{ $data->first() ? $data->first()->reservation ? $data->first()->reservation->checkin_code : null : null}} {{ $data->first() ? $data->first()->reservation ? $data->first()->reservation->get_agent_info->name_eng : null: null}} {{ $received - $discount}} {{ $refund }}
{{ __('obs.total_balance') }}:  {{ $balance }} {{ $total_received }} {{ $total_refund }}
@endsection @section('script') @endsection