@extends('layouts.app') @section('title','API Integrations - NGBVD') @section('content') @include('integrations.partials.settings_style') @php $summary = $summary ?? []; $clients = $summary['clients'] ?? 0; $activeClients = $summary['active_clients'] ?? 0; $success = $summary['success'] ?? 0; $failed = $summary['failed'] ?? 0; $pending = $summary['pending'] ?? 0; $recentLogs = $recentLogs ?? collect(); @endphp
Secure Data Exchange

API Integrations

Manage approved system-to-system data exchange with authorised platforms while maintaining auditability and survivor data protection.

API Clients{{ number_format($clients) }}{{ number_format($activeClients) }} active
Successful Shares{{ number_format($success) }}Completed
Failed Shares{{ number_format($failed) }}Requires review
Pending{{ number_format($pending) }}Awaiting response

Data Protection Notes

Operational guidance for approved sharing.

Use separate API clients for partner systems. Secrets are hashed and should be copied only at creation.
Integration logs keep request and response previews encoded to reduce exposure of sensitive information.

Recent Sharing Activity

Latest API exchange attempts recorded by the system.

@forelse($recentLogs as $log) @php $status=strtolower($log->status ?? 'pending'); $cls=$status==='success'?'ni-success':(in_array($status,['failed','error'])?'ni-danger':'ni-warning'); @endphp @empty @endforelse
DateSystemDirectionCaseStatusHTTPLog
{{ optional($log->created_at)->format('d M Y H:i') ?: 'N/A' }} {{ $log->system_name ?: $log->integration_name ?: 'External System' }} {{ ucfirst($log->direction ?: 'outbound') }} {{ $log->case_reference ?: 'N/A' }} {{ ucfirst($status) }} {{ $log->response_code ?: '-' }} @if(!empty($log->uuid)) View@elseN/A@endif
No sharing activity yetAPI sharing attempts will appear here once records are exchanged.
@endsection