@extends('layouts/layoutMaster') @section('title', __('locale.Store Dues')) @section('vendor-style') @vite(['resources/assets/css/datatables.scss']) @endsection @section('vendor-script') @vite(['resources/assets/js/datatables.js']) @endsection @section('content')
@php $grandTotal = 0; foreach ($totals as $row) { $grandTotal += ($row->total_balance ?? 0) + ($row->total_withdrawals ?? 0); $currency = $row->currency; } @endphp {{ __('locale.Amount To Be Paid') }}: {{ $currency }}{{ $grandTotal }} @foreach ($totals as $row)

{{ $row->currency }}{{ $row->total_balance ?? 0 }} ({{ __('locale.Wallet') }}) @if ($row->total_withdrawals > 0) + {{ $row->currency }}{{ $row->total_withdrawals ?? 0 }} ({{ __('locale.Withdrawal Request') }}) @endif

@endforeach
{{ __('locale.Amount To Be Receive') }} @foreach ($totals as $row)

{{ $row->currency }}{{ $row->total_pending_dues ?? 0 }}

@endforeach
{{ __('locale.Store Details') }} {{ __('locale.Wallet Balance') }} {{ __('locale.Pending Dues') }} {{ __('locale.Actions') }}
@include('_partials/_modals/modal-clear-dues') @endsection @section('page-script') @vite(['resources/assets/js/wallet_store.js']) @endsection