@extends('layouts.app') @section('title')Account Balance @endsection @section('content') @if (\Session::has('success'))
×
@endif @if (session('error'))
×
@endif @if (isset($error))
×
@endif
@if(Auth::user()->user_role == 1 || Auth::user()->user_role == 2)
@endif

Account Balance: ${{ number_format($totalPendingAmount ,2)}}

@if(isset($selectedUserId) && $selectedUserId != null && $totalPendingAmount > 0) @endif

{{ __('Account Balance') }}

@if(Auth::user()->user_role != '3') @endif @if(isset($pendingPayments) && count($pendingPayments) > 0) @foreach ($pendingPayments as $payment) @if(Auth::user()->user_role != '3') @endif @endforeach @endif
NamePlan Name Amount Due Currency Due Date Status
{{getUserDetails($payment->user_id)->name.' '.getUserDetails($payment->user_id)->last_name}}{{ $payment->user->subscriptionPlan->name ?? '' }} {{ $payment->amount_due }} {{ $payment->currency }} {{ date('m-d-Y', strtotime($payment->due_date)) }} {{ ucfirst($payment->status) }}
@endsection