@php $v = function ($value) { $text = trim((string) ($value ?? '')); return $text !== '' ? $text : '-'; }; @endphp
{{-- HEADER: Logo + No + Status --}}
Logo

PS No. {{ $v($idPs) }}

PENGAJUAN SAMPLE
{{-- INFO GRID --}}
Customer:{{ $v($customer) }} Sales:{{ $v($salesman) }}
Tanggal PS:{{ $v($psDate) }}
{{-- MATERIAL TABLE --}} @forelse($items as $i => $item) @empty @endforelse
No Kode Material Warna Gsm Width Length Qty UOM Status Feedback Customer
{{ $i + 1 }} {{ $v($item->material_code ?? null) }} {{ $v($item->color ?? null) }} {{ $v($item->size_gsm ?? ($item->gsm ?? null)) }} {{ $v($item->size_width ?? ($item->width ?? null)) }} {{ $v($item->size_length ?? ($item->length ?? null)) }} {{ $v($item->qty ?? ($item->qty_sales ?? null)) }} {{ $v($item->uom ?? ($item->sales_unit ?? null)) }} @php $st = trim((string) ($item->status_feedback ?? '')); $stText = $st === '1' ? 'Accepted' : ($st === '0' ? 'Not Accepted' : '-'); @endphp {{ $stText }}
Tidak ada data material.