@extends('layouts.app') @inject('controller', 'App\Http\Controllers\Controller') @section('sidebar') @include('sidebar') @stop @section('content')

Daily Report Manage

{{ $bank->name }} - {{ $requestDate }}

Last updated at - @if(isset($reportRecord->updated_at)) {{ $reportRecord->updated_at }} @endif
Last updated By - @if(isset($reportRecord->updated_at)) {{ DB::table('admins')->where('id',$reportRecord->admin_id)->first()->name }} @endif
@if(Session::has('success'))
{!! Session::get('success') !!}
@endif @if(session()->has('message_success'))
{{ session()->get('message_success') }}
@endif
@php $TotalWire = 0; $TotalLA = 0; $TotalWire_withdrawal = 0; $TotalLA_withdrawal = 0; @endphp @if (count($records)) @foreach ($records as $recordKey => $record) @if (!empty($record['deposit-inr-request']['total_inr']) || !empty($record['deposit-wire-request']['total_wire'])) @php $TotalWire += $record['deposit-wire-request']['total_wire'] ?? 0; $TotalLA += $record['deposit-inr-request']['total_inr'] ?? 0; $TotalWire_withdrawal += $record['withdrawal-wire-request']['total_withdrawal'] ?? 0; $TotalLA_withdrawal += $record['withdrawal-inr-request']['total_withdrawal'] ?? 0; @endphp {{-- withdrawal start --}} {{-- withdrawal end --}} @endif @endforeach @else @endif {{-- --}} {{-- --}}

Date : {{ $requestDate != '' ? $requestDate : 'N/A' }}

# Name Deposit Withdraw
Wire Total Wire INR Local Total LA INR Wire Total Wire INR Local Total LA INR
MT4 Account Wallets MT4 Account Wallets Clients IB Clients IB
{{ $record['bank'] }} ${{ round($record['deposit-wire-request']['mt4account'],2) }} ${{ round($record['deposit-wire-request']['wallet'] ,2)}} ₹{{ round($record['deposit-wire-request']['total_wire'] , 2) ?? 0 }} ${{ round($record['deposit-inr-request']['mt4account'] ,2)}} ${{ round($record['deposit-inr-request']['wallet'] ,2)}} ₹{{ round($record['deposit-inr-request']['total_inr'],2)?? 0 }}${{ round($record['withdrawal-wire-request']['client'] ,2)}} ${{ round($record['withdrawal-wire-request']['ib'] ,2)}} ₹{{ round($record['withdrawal-wire-request']['total_withdrawal'],2)?? 0 }} ${{ round($record['withdrawal-inr-request']['client'] ,2)}} ${{ round($record['withdrawal-inr-request']['ib'] ,2)}} ₹{{ round($record['withdrawal-inr-request']['total_withdrawal'],2)?? 0 }}
No Record found
Total Wire INR ₹{{ round($TotalWire,2) ?? 0 }} Total LA INR ₹{{ round($TotalLA,2) ?? 0 }} Total Wire INR ₹{{ round($TotalWire_withdrawal,2) ?? 0 }} Total LA INR ₹{{ round($TotalLA_withdrawal,2) ?? 0 }}
Total Deposit {{ round($TotalWire + $TotalLA,2) }}
Total Withdraw : {{ round($TotalWire_withdrawal + $TotalLA_withdrawal,2) }}
Total Difference : {{ round ( ($TotalWire + $TotalLA) - ($TotalWire_withdrawal + $TotalLA_withdrawal) , 2) }}
@php $balancmanage =[]; @endphp @if (isset($reportRecord->json)) @php $json = json_decode($reportRecord->json, TRUE); $balancmanage = json_decode($reportRecord->balancmanage, TRUE); if ($json === null) { $json = []; } if ($balancmanage === null) { $balancmanage = []; } @endphp @else @php $json = []; @endphp @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@php $balancmanageSum = 0; $difference = isset($json['difference']) ? round($json['difference'],2) : 0; @endphp
@csrf @php $closeBalance = isset($json['closeBalance']) ? $json['closeBalance'] : 0; $openBalance = isset($json['openBalance']) ? $json['openBalance'] : 0; @endphp
Open Balance
Close Balance
Difference
Amount
Comment
@if (count($balancmanage) > 0) @foreach ($balancmanage as $itemkey => $item) @php $amount = isset($item['amount']) ? $item['amount'] : 0; $balancmanageSum += $amount @endphp
@if ($itemkey == 0) @else @endif
@endforeach @else
@endif
@if (round(($closeBalance - $openBalance) + $balancmanageSum,2) >= round(($TotalWire + $TotalLA) - ($TotalWire_withdrawal + $TotalLA_withdrawal),2))

Transaction balance verified Thank you !!

@endif
Cancle
@endsection @section('script') {{ Html::script('custom/eModal/eModal.js') }} {{ Html::script('custom/datatables/datatables.bundle.js') }} @endsection