@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'])
{{-- ✅ BACK yang optimal --}}
Terakhir sinkron: {{ $last_sync_time ?? 'Belum Pernah' }}
List {{ $title_menu ?? 'Certificate of Analysis' }}
{{-- Alert messages --}}
@if (session('success')) @endif @if (session('error')) @endif

@include('components.alert')
{{-- Header dinamis mic --}} @if (!empty($uniqueMicNames)) @foreach ($uniqueMicNames as $mic_name) @endforeach @else @endif @if (!empty($listdo_data)) @foreach ($listdo_data as $coa) {{-- ✅ MIC value cepat (pakai map, bukan filter collection) --}} @foreach ($uniqueMicNames ?? [] as $mic_name) @endforeach @endforeach @else @endif
No Action A.C GI Date SD Doc. Material Name Customer Description Workcenter Line Jumboroll COA Number Roll Number{{ ucfirst(str_replace('_', ' ', $mic_name)) }} No Data Found for `trs_coa_d`
{{ $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'] ?? '-' }}{{ $coaDetailMap[$coa['coa_number'] ?? ''][$mic_name] ?? '-' }}
Data COA tidak ditemukan.
@endsection