@php
$uCard = auth()->user();
$pCard = optional($uCard->profile);
$provinceCard = optional($pCard->province)->name ?? ($pCard->other_province ?? null);
$regencyCard = optional($pCard->regency)->name ?? ($pCard->other_regency ?? null);
$districtCard = optional($pCard->district)->name ?? ($pCard->other_district ?? null);
@endphp
{{ $activity->name ?? 'KARTU PESERTA' }}
{{ $uCard->name ?? '-' }}
{{ $uCard->email ?? '-' }}
@if($pCard && $pCard->foto)
 }})
@else
 }})
@endif
@php
$qrData = $uCard->id ?? 0;
$qrSvg = \SimpleSoftwareIO\QrCode\Facades\QrCode::size(80)->generate($qrData);
$qrBase64 = base64_encode($qrSvg);
@endphp
{{ $pCard->no_hp ?? '-' }}
{{ $pCard->jenis_kelamin ?? '-' }}
{{ $pCard->pekerjaan ?? '-' }}
{{ $pCard->jabatan ?? '-' }}
{{ $pCard->alamat ?? '-' }}
{{ $provinceCard ?? '-' }}
{{ $regencyCard ?? '-' }}
{{ $districtCard ?? '-' }}