{{ $member->nama }}
| ID/UID Anggota |
: |
{{ $member->uid ?? '-' }} |
| NIP/NIM |
: |
{{ $member->nip_nim ?? '-' }} |
| Email |
: |
{{ $member->email }} |
| Alamat |
: |
{{ Str::limit($member->alamat, 45) }} |
| No. 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 = "";
}
@endphp
@if($fotoSrc)
@endif
|