@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
@if ($errors->any())
@endif
Night Audit User Amount Handover
{{ Form::open(['route' => ['frontdesk.receipt.user.amount.transfer'], 'method' => 'post', 'class' => 'form-horizontal', 'enctype' => 'multipart/form-data']) }}

Cash Collections

@php $total_c=0; $total_h=0; @endphp @forelse (getCashBank()->where('type','<>',2) as $k=>$payment) @php $collections = $collection_group_by_ledger->where('ledger_id',$payment->account_id); $refundMoneyReffernce =$refund_collection ? $refund_collection->pluck('reff_no')->toArray() : []; $from_refund = $collections->whereIn('fd_invoice_id',$refundMoneyReffernce); if(count($from_refund) >0){ $refund_amount = $refund_collection->whereIn('reff_no',$from_refund->pluck('fd_invoice_id'))->sum('amount'); }else{ $refund_amount = 0; } $c_amount=$collection_group_by_ledger->where('ledger_id',$payment->account_id)->sum('amount') - $refund_amount; $h_amount=$handover_group_by_ledger->where('ledger_id',$payment->account_id)->sum('amount'); $total_c+=($c_amount); $total_h+=($h_amount); $total_cash_amount = $h_amount + $c_amount; @endphp @if($total_cash_amount > 0) {{-- --}} @endif @empty @endforelse
SL Payment Method Received Collection Total
{{$k+1}} {{$payment->name_eng}}({{$payment->account_id}}){{implode(",", $ids)}}{{$h_amount}} {{$c_amount}}
Total {{$total_h}} {{$total_c}}
Hand Over To User
{{-- @dd($users->first()->cashier) --}} @error('user_id') {{ $message }} @enderror
{{ Form::textarea('note', null, ['class' => 'form-control', 'id' => 'note', 'rows' => 1, 'placeholder' => 'Remarks']) }} @error('note') {{ $message }} @enderror
{{ Form::close() }}
{{ Form::open(['route' => ['frontdesk.receipt.user.transfer_to_accounts'], 'method' => 'post', 'class' => 'form-horizontal', 'enctype' => 'multipart/form-data']) }}

Bank Received

@php $total_c=0; $total_h=0; @endphp @forelse (getCashBank()->where('type',2) as $k=>$payment) @php $collections = $bank_collection_group_by_ledger->where('ledger_id',$payment->account_id); $c_amount=$bank_collection_group_by_ledger->where('ledger_id',$payment->account_id)->sum('amount'); $total_c+=($c_amount); @endphp {{-- --}} @empty @endforelse
SL Payment Method Received Total
{{$k+1}} {{$payment->name_eng}}({{$payment->account_id}}){{implode(",", $ids)}}{{$c_amount}}
Total {{$total_c}}
{{ Form::close() }}

Send Request List Of Date: {{ date('d-m-Y') /*carbon()->parse()->format('d-m-Y')*/ }}

@foreach ($handover_list as $invoice=>$request_list ) @php $reff = App\Models\Frontdesk\FdInvoiceDetails::where('fd_invoice_id',$invoice); $data = $reff->pluck('id')->toArray(); // $refund = App\Models\Frontdesk\FdInvoiceDetails::whereIn('reference_id',$data)->where('voucher_type',5)->where('type',0)->sum('amount'); $senderName = $reff ->where('type',1)->first(); @endphp @endforeach
Sender Amount Date Action
@if($request_list->first()->type ==1) @else {{user_name($request_list->first()->created_by)}} @endif {{$request_list->sum('amount')}} {{ date('d-m-Y h:m:i A', strtotime($request_list->first()->date)) /*carbon()->parse($request_list->first()->date)->format("d-m-Y h:m:i A") */}} Details || @if($request_list->first()->type ==1) Pending || @else {{$request_list->first()->status == 2 ? "Accept" :null }} @endif {{-- {{"Reject"}} --}}
@endsection @section('script') @endsection