@php $logoPath = storage_path('app/public/logoTSI.jpg'); $logoBase64 = ''; if (file_exists($logoPath)) { $imageData = base64_encode(file_get_contents($logoPath)); $logoBase64 = 'data:image/jpeg;base64,' . $imageData; } @endphp @if ($logoBase64) Logo TSI @else
LOGO
@endif
FORM REPAIR BARANG
ID Transaksi : {{ $header->id_transaksi ?? '' }} Jenis Repair : {{ $header->jenis_name ?? '' }}
Tanggal : {{ $header->tanggal ? \Carbon\Carbon::parse($header->tanggal)->format('d/m/Y') : '' }} Shift : {{ $header->shift_name ?? '' }}
Group : {{ $header->group_name ?? '' }}
@foreach ($details as $detail) @endforeach
No Kode Baru Kode Lama Nama Barang Qty Satuan Catatan
{{ $loop->iteration }} {{ $detail->kode_baru ?? '' }} {{ $detail->kode_lama ?? '' }} {{ $detail->nama_barang ?? '' }} {{ ($detail->qty ?? 0) == floor($detail->qty ?? 0) ? number_format($detail->qty ?? 0, 0, ',', '.') : number_format($detail->qty ?? 0, 2, ',', '.') }} {{ $detail->satuan ?? '' }} {{ $detail->catatan ?? '' }}
 
Dibuat Oleh
 
{{ $header->petugas_name ?? '' }}