{{-- Company Header & Meta --}}
@php $logoPath = public_path('storage/logo_msj_full.png'); $logoSrc = file_exists($logoPath) ? 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath)) : asset('storage/logo_msj_full.png'); @endphp
PT Multi Spunindo Jaya Tbk
REPORT DATA USER (SINKRONISASI PRODUKSI)
Mode: {{ $view_mode === 'summary' ? 'Order Summary' : 'Only Batch Data' }} | Periode: {{ !empty($frProdDate) ? date('d/m/Y', strtotime($frProdDate)) : '-' }} s/d {{ !empty($toProdDate) ? date('d/m/Y', strtotime($toProdDate)) : '-' }} @if(!empty($gedungInfo)) | Gedung: {{ $gedungInfo->kode_gedung }} - {{ $gedungInfo->nama_gedung }} @endif @if(!empty($orderNo)) | No. Order: {{ $orderNo }} @endif
Tanggal Cetak: {{ date('d/m/Y H:i:s') }} WIB
Dicetak Oleh: {{ $username }}
Total Data: {{ count($rows) }} {{ $view_mode === 'summary' ? 'Order' : 'Batch' }}
@if ($view_mode === 'summary') {{-- ========================================================== --}} {{-- MODE 2: ORDER SUMMARY (21 Kolom) --}} {{-- ========================================================== --}} @forelse ($rows as $index => $row) @php $rowClass = ($row->grade_d > 0 || $row->cek_not_ok > 0) ? 'row-defect' : ($index % 2 === 0 ? 'row-even' : 'row-odd'); @endphp @empty @endforelse
NO USER PENARIK GEDUNG TANGGAL NO. ORDER CUSTOMER MATERIAL QUANTITY QTY ORDER INSP. LEVEL QTY SAMPLING ACCEPT NUMB REJECT NUMB TOTAL PRODUKSI GRADE A/B GRADE C GRADE D GRADE E CEK OK CEK NOT OK KEPUTUSAN
{{ $index + 1 }} {{ $row->user_create ?? '-' }} {{ $row->nama_gedung ?? ($row->kode_gedung ?? '-') }} {{ $row->production_date ? \Carbon\Carbon::parse($row->production_date)->format('d/m/Y') : '-' }} {{ $row->order_no }} {{ \Illuminate\Support\Str::limit($row->customer_name ?? ($row->sold_to ?? '-'), 22) }} {{ \Illuminate\Support\Str::limit($row->material ?? '-', 24) }} {{ $row->quantity !== null ? number_format($row->quantity, 0, ',', '.') : '-' }} {{ $row->order_qty !== null ? number_format($row->order_qty, 0, ',', '.') : '-' }} {{ $row->level_no !== null ? (is_numeric($row->level_no) ? (int)$row->level_no : $row->level_no) : '-' }} {{ $row->sampling !== null ? number_format($row->sampling, 0, ',', '.') : '-' }} {{ $row->accept_qty !== null ? number_format($row->accept_qty, 0, ',', '.') : '-' }} {{ $row->reject_qty !== null ? number_format($row->reject_qty, 0, ',', '.') : '-' }} {{ $row->qty_produksi }} {{ $row->grade_ab }} {{ $row->grade_c }} {{ $row->grade_d }} {{ $row->grade_e }} {{ $row->cek_ok }} {{ $row->cek_not_ok }} @if ($row->keputusan === 'DITERIMA') DITERIMA @elseif ($row->keputusan === 'DITOLAK') DITOLAK @else {{ $row->keputusan }} @endif
Tidak ada data yang sesuai dengan filter.
@else {{-- ========================================================== --}} {{-- MODE 1: BATCH DATA (16 Kolom) --}} {{-- ========================================================== --}} @forelse ($rows as $index => $row) @php $chk = strtoupper(trim($row->check_result ?? '')); $isDefect = ($row->isactive == '0' || in_array($chk, ['NOT OK', 'NOK', 'CEK NOT OK', 'CEK_NOT_OK'])); $rowClass = $isDefect ? 'row-defect' : ($index % 2 === 0 ? 'row-even' : 'row-odd'); @endphp @empty @endforelse
NO USER PENARIK GEDUNG TANGGAL NO. ORDER WORK CENTER BATCH NO MATERIAL QUANTITY QTY ORDER LEVEL SAMPLING ACCEPT REJECT GRADE CHECK RESULT
{{ $index + 1 }} {{ $row->user_create ?? '-' }} {{ $row->nama_gedung ?? ($row->kode_gedung ?? '-') }} {{ $row->production_date ? \Carbon\Carbon::parse($row->production_date)->format('d/m/Y') : '-' }} {{ $row->order_no }} {{ $row->work_center ?? '-' }} {{ $row->batch_no ?? '-' }} {{ \Illuminate\Support\Str::limit($row->material ?? '-', 26) }} {{ $row->quantity !== null ? number_format($row->quantity, 0, ',', '.') : '-' }} {{ $row->order_qty !== null ? number_format($row->order_qty, 0, ',', '.') : '-' }} {{ $row->level_no !== null ? (is_numeric($row->level_no) ? (int)$row->level_no : $row->level_no) : '-' }} {{ $row->sampling !== null ? number_format($row->sampling, 0, ',', '.') : '-' }} {{ $row->accept_qty !== null ? number_format($row->accept_qty, 0, ',', '.') : '-' }} {{ $row->reject_qty !== null ? number_format($row->reject_qty, 0, ',', '.') : '-' }} {{ $row->validation_grade ?: '-' }} @if (in_array($chk, ['OK', 'CEK OK', 'CEK_OK'])) CEK OK @elseif (in_array($chk, ['NOT OK', 'NOK', 'CEK NOT OK', 'CEK_NOT_OK'])) CEK NOT OK @else No Cek @endif
Tidak ada data yang sesuai dengan filter.
@endif