@php $isAdmin = in_array(Auth::user()->role, ['admin', 'super_admin']); @endphp
{{ __('Payments') }}
@if($isAdmin) {{ __('Record Payment') }} @endif
{{ __('Pending') }} {{ $pending->count() }}
{{ __('Awaiting admin approval') }}
@if($isAdmin) @endif @forelse($pending as $p) @if($isAdmin) @endif @empty @endforelse
# {{ __('Student') }} {{ __('Destination') }} {{ __('Term') }} {{ __('Amount (RWF)') }} {{ __('Balance (RWF)') }} {{ __('Method') }} {{ __('Date') }}{{ __('Actions') }}
{{ $loop->iteration }} {{ $p->student->name ?? 'Deleted Student' }} {{ $p->destination }} {{ $p->term }} {{ number_format($p->amount) }} @if($p->balance > 0) {{ number_format($p->balance) }} @else - @endif {{ str_replace('_', ' ', $p->payment_method ?? 'cash') }} {{ $p->payment_date ? $p->payment_date->format('d M Y') : '-' }} @if($p->proof_of_payment) @endif
@csrf @method('PUT')
@csrf @method('DELETE')
{{ __('No pending payments.') }}
{{ __('Processed') }} {{ $processed->count() }}
{{ __('Verified & confirmed') }}
@if($isAdmin) @endif @forelse($processed as $p) @if($isAdmin) @endif @empty @endforelse
# {{ __('Student') }} {{ __('Destination') }} {{ __('Term') }} {{ __('Amount (RWF)') }} {{ __('Balance (RWF)') }} {{ __('Method') }} {{ __('Date') }}{{ __('Actions') }}
{{ $loop->iteration }} {{ $p->student->name ?? 'Deleted Student' }} {{ $p->destination }} {{ $p->term }} {{ number_format($p->amount) }} @if($p->balance > 0) {{ number_format($p->balance) }} @else - @endif @php $badgeColor = $p->payment_method === 'mobile_money' ? 'bg-yellow-100 text-yellow-800' : ($p->payment_method === 'bank_transfer' ? 'bg-blue-100 text-blue-800' : 'bg-slate-100 text-slate-800'); @endphp {{ str_replace('_', ' ', $p->payment_method ?? 'cash') }} {{ $p->payment_date ? $p->payment_date->format('d M Y') : '-' }} @if($p->proof_of_payment) @endif
@csrf @method('DELETE')
{{ __('No processed payments yet.') }}