@php $profile = \App\Models\Profile::first(); $institutionName = $profile?->nama_perusahaan ?? 'Nama Institusi'; $institutionLogo = $profile?->logo ? public_path('storage/' . $profile->logo) : null; $printedBy = auth()->user()?->name ?? 'Admin'; @endphp {{-- Header --}}
@if ($institutionLogo && file_exists($institutionLogo)) Logo Institusi @endif

{{ $institutionName }}

Laporan Transaksi

Tanggal Cetak: {{ now()->format('d-m-Y H:i') }}

@foreach ($transactions as $trx) @endforeach
No Invoice ID User Total (Rp) Status Tanggal Catatan User Catatan Admin Rasionalisasi Admin
{{ $loop->iteration }} #{{ $trx->id }} {{ $trx->user->name ?? '-' }} {{ number_format($trx->total, 0, ',', '.') }} {{ ucfirst(str_replace('_', ' ', $trx->status)) }} {{ $trx->created_at->format('d/m/Y H:i') }} {{ $trx->notes ?? '-' }} {{ $trx->admin_note ?? '-' }} {{ $trx->admin_rationale ?? '-' }}
{{-- Footer --}}