{{-- KOP KAMPUS --}}

Laporan Nota Pengeluaran

{{ $user->nama }} - {{ $user->nim }}

Prodi: {{ $user->prodi }} | Semester: {{ $user->semester }}

@foreach($notas as $nota)
Tanggal: {{ \Carbon\Carbon::parse($nota->tanggal)->format('d M Y') }}
Item: {{ $nota->nama_barang }}
Ket: {{ $nota->keterangan ?? '-' }}
Total: Rp {{ number_format($nota->jumlah * $nota->harga, 0, ',', '.') }}
@php $path = storage_path('app/public/'.$nota->foto_nota); $type = pathinfo($path, PATHINFO_EXTENSION); $data = ''; if(file_exists($path) && in_array(strtolower($type), ['jpg', 'jpeg', 'png', 'gif'])) { $data = base64_encode(file_get_contents($path)); } @endphp @if(!empty($data)) @else
No Image / PDF
@endif
@endforeach