{{ $member->nama }}
NIP/NIM: {{ $member->nip_nim ?? '-' }}
Email: {{ $member->email }}
Alamat: {{ $member->alamat }}
Nomor Telepon: {{ $member->no_hp ?? '-' }}
@php
$fotoPath = $member->foto ? storage_path('app/public/foto_anggota/'.$member->foto) : public_path('images/default-user.png');
if(file_exists($fotoPath)){
$fotoData = base64_encode(file_get_contents($fotoPath));
$fotoExt = pathinfo($fotoPath, PATHINFO_EXTENSION);
$fotoSrc = "data:image/{$fotoExt};base64,{$fotoData}";
} else {
$fotoSrc = asset('images/default-user.png');
}
@endphp