{{-- Personal security data export (dompdf). Kept to plain tables and inline styles on purpose: dompdf supports only a narrow slice of CSS, so the compiled Tailwind stylesheet would render as unstyled text here. Colours are the design system's own values, written literally because a PDF has no theme to resolve tokens against. --}} Security data export

Security data export

{{ $user->full_name ?? $user->name }} · {{ $user->email }}
User ID {{ $data['user_id'] }} · exported {{ $data['exported_at'] }}
@php $sections = [ 'Active sessions' => $data['active_sessions'], 'Login history' => $data['login_history'], 'Security events' => $data['security_events'], 'Trusted devices' => $data['trusted_devices'], ]; @endphp @foreach ($sections as $heading => $section) @php $rows = collect($section)->map(fn ($row) => collect($row)->toArray()); @endphp

{{ $heading }} ({{ $rows->count() }})

@if ($rows->isEmpty())
No records.
@else @foreach (array_keys($rows->first()) as $column) @endforeach @foreach ($rows as $row) @foreach ($row as $value) @endforeach @endforeach
{{ str_replace('_', ' ', $column) }}
{{ is_scalar($value) || $value === null ? $value : json_encode($value) }}
@endif @endforeach