@php $coaList = $listdo_data ?? []; // Ambil data langsung dari sync_data @endphp @extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Certificate of Analysis'])
| No | Action | A.C GI Date | SD Doc. | Material | Name | Customer | Description | Workcenter | Line | Jumboroll | COA Number | Roll Number | {{-- Header dinamis mic --}} @if (!empty($uniqueMicNames)) @foreach ($uniqueMicNames as $mic_name){{ ucfirst(str_replace('_', ' ', $mic_name)) }} | @endforeach @elseNo Data Found for `trs_coa_d` | @endif|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $coa['WADAT_IST'] ?? '-' }} | {{ $coa['VBELN'] ?? '-' }} | {{ $coa['MATNR'] ?? '-' }} | {{ mb_strtoupper($coa['customer_name'] ?? ($coa['NAME1'] ?? '-'), 'UTF-8') }} | {{ $coa['KUNAG'] ?? '-' }} | {{ $coa['ARKTX'] ?? '-' }} | {{ $coa['LTXA1'] ?? '-' }} | {{ !empty($coa['LINE']) ? 'Line ' . $coa['LINE'] : '-' }} | {{ $coa['JUMBOROLL'] ?? '-' }} | {{ $coa['coa_number'] ?? '-' }} | {{ $coa['roll_number'] ?? '-' }} | {{-- ✅ MIC value cepat (pakai map, bukan filter collection) --}} @foreach ($uniqueMicNames ?? [] as $mic_name){{ $coaDetailMap[$coa['coa_number'] ?? ''][$mic_name] ?? '-' }} | @endforeach|||||||||
| Data COA tidak ditemukan. | |||||||||||||||||||||