@extends('layouts.app') @section('title', __('Payment reviews')) @section('content')

{{ __('Review payment submissions and update their status.') }}

{{ __('Payment submissions') }}

{{ $payments->total() }} {{ __('records') }}

@if($payments->count())
@if(auth()->user()->isAdmin())@endif @foreach($payments as $payment) @if(auth()->user()->isAdmin())@endif @endforeach
{{ auth()->user()->isEmployee() ? __('Account') : __('Member') }}{{ __('Amount') }}{{ __('Method / reference') }}{{ __('Submitted') }}{{ __('Status') }}{{ __('Review') }}

{{ $payment->user->name ?? __('Account unavailable') }}

{{ $payment->user->member_id ?? '—' }}

৳{{ number_format($payment->amount, 2) }}

{{ $payment->method ?: '—' }}

{{ $payment->reference ?: __('No reference') }}

@if($payment->proof_path){{ __('Open proof') }}@endif
{{ $payment->created_at->format('M d, Y') }} {{ ucfirst($payment->status) }} @if($payment->status === 'pending')
@csrf
@csrf
@else {{ __('Reviewed') }} @endif
{{ $payments->links() }}
@else

{{ auth()->user()->isEmployee() ? __('No payment submissions for your account') : __('No payment submissions') }}

{{ __('New member submissions will appear here.') }}

@endif
@endsection