@extends('admin.layout.master') @section('custom_style') @endsection @section('content') @include('flash-message')
@if ($errors->any())
@endif
Cashier Handover
Reporting Date: {{ carbon()->parse()->format('d-m-Y') }}
{{-- --}}
Oppening Received Payment Refund Balance
{{$summary['opening_balance']}} {{$summary['received']}} {{$summary['handovered']}} {{$summary['refund']}} {{$summary['balance']}}
@if(!user_default_cash_id(active_user()))
@endif
{{--style="display: none" --}}
{{ Form::open(['route' => ['frontdesk.cashier.transfer'], 'method' => 'post', 'class' => 'form-horizontal','id'=>'myForm','enctype' => 'multipart/form-data']) }}

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); @endphp {{-- @dd($data->first()->reservation->get_agent_info) --}} {{-- --}} @endforeach @php $total_received = $user_collection_details->collapse()->where('voucher_type','<>',5)->sum('amount'); $total_refund = $user_collection_details->collapse()->where('voucher_type',5)->sum('amount'); $balance = $total_received - $total_refund; @endphp @endif
#SL Checkin Date Checkout Date Reserv. No Checkin No Party Name Received Refund Check Box  
{{ $i++}} {{carbon()->parse($data->first()->reservation->check_in_date)->format('d-m-Y')}} {{carbon()->parse($data->first()->reservation->check_out_date)->format('d-m-Y')}} {{ $data->first()->reservation->resv_code }} {{ $data->first()->reservation->checkin_code }} {{ $data->first()->reservation->get_agent_info->name_eng }} {{$received}} {{$refund}} @php $amount_after_refund = $data['user_received'] - $data['refund']; @endphp
Total {{$total_received}} {{$total_refund}} Balance: {{ $balance}}
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() }}

Handover Request List Of Date: {{ carbon()->parse()->format('d-m-Y') }}

@foreach ($user_handover_list as $invoice=>$request_list ) @php $sender = App\Models\Frontdesk\FdInvoiceDetails::where('fd_invoice_id',$invoice)->where('type',1)->first(); @endphp @endforeach
Hotel Sender Amount Date Action
{{$request_list->first()->warehouse_id ? get_warehouse_name($request_list->first()->warehouse_id): null}} @if($request_list->first()->type ==1) @else {{user_name($request_list->first()->created_by)}} @endif {{$request_list->sum('amount')}} {{carbon()->parse($request_list->first()->date)->format("d-m-Y h:m:i A")}} Details || {{-- {{$request_list->first()->status == 2 ? "Accept" : null }} || --}} @if($request_list->first()->type ==1) Pending || @else Accept {{-- {{$request_list->first()->status == 2 ? "Accept" :null }} || --}} @endif {{"Reject"}}

Request List From Accounts

@foreach ($receive_from_accounts as $voucher=>$request_list ) @php $admin_id = $request_list->first()->voucher->created_by; $senderName = App\Models\Admin\Admin::where('id',$admin_id)->first()->name; @endphp @endforeach
Sender Type Amount Date Action
{{$senderName}} @if($request_list->first()->voucher->type ==1 ) {{ "Cash Payment"}} @elseif ($request_list->first()->voucher->type ==2) {{ "Bank Payment"}} @elseif ($request_list->first()->voucher->type ==3) {{ "Cash Receive"}} @else {{ "Bank Receive"}} @endif {{$request_list->sum('amount')}} {{carbon()->parse($request_list->first()->date)->format("d-m-Y h:m:i A")}} Accept
@endsection @section('script') @endsection