{{ __('Custodian Integration Status') }}

@php $totalCustodians = count($custodians); $healthyCustodians = collect($custodians)->where('status', 'healthy')->count(); $degradedCustodians = collect($custodians)->where('status', 'degraded')->count(); $downCustodians = collect($custodians)->where('status', 'down')->count(); @endphp
Total Custodians
{{ $totalCustodians }}
Healthy
{{ $healthyCustodians }}
Degraded
{{ $degradedCustodians }}
Down
{{ $downCustodians }}

Custodian Status

@foreach($custodians as $custodian)

{{ $custodian['name'] }}

{{ $custodian['code'] }}

{{ ucfirst($custodian['status']) }}
Health Score: {{ $custodian['health_score'] }}%
Accounts: {{ $custodian['accounts'] }}
Last Sync: @if($custodian['last_sync']) {{ \Carbon\Carbon::parse($custodian['last_sync'])->diffForHumans() }} @else Never @endif
@endforeach

Recent Transfers

@if($recentTransfers->isEmpty())

No recent transfers

@else
@foreach($recentTransfers as $transfer) @endforeach
Time Custodian Type Amount From/To Status
{{ $transfer['created_at']->format('H:i:s') }} {{ $transfer['custodian'] }} {{ ucfirst($transfer['type']) }} {{ number_format($transfer['amount'] / 100, 2) }} {{ $transfer['currency'] }} @if($transfer['type'] === 'outgoing') {{ $transfer['source'] }} → {{ $transfer['destination'] }} @else {{ $transfer['destination'] }} ← {{ $transfer['source'] }} @endif {{ ucfirst($transfer['status']) }}
@endif

Webhook Statistics (24h)

Total Webhooks: {{ number_format($webhookStats['total']) }}
Processed: {{ number_format($webhookStats['processed']) }}
Failed: {{ number_format($webhookStats['failed']) }}
Pending: {{ number_format($webhookStats['pending']) }}
Success Rate: {{ $webhookStats['success_rate'] }}%

Synchronization Status

@foreach($syncStatus as $sync)
{{ $sync['custodian'] }}: {{ ucfirst($sync['status']) }}
@endforeach