@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Onprogress Sample (Informasi COA & ROLL)

@include('components.alert') @if(empty($samples_with_details) || count($samples_with_details) == 0)
Tidak ada data sample ongoing.
@else
@foreach($samples_with_details as $sampleIndex => $sampleData) @php $sample = $sampleData['sample']; $approval = $sampleData['approval']; $items = $sampleData['items']; $searchText = strtolower($sample->id_sample . ' ' . ($sample->customer ?? '') . ' ' . ($sample->nama_sales ?? '')); @endphp
{{-- Sample Info Header --}}
{{ $sample->id_sample }} {{ $sample->status }}
{{-- CHANGED: Upgraded font size to text-sm --}}
{{ $sample->customer ?? '-' }} {{ $sample->nama_sales ?? '-' }}
Progress {{ $sampleData['filled_fields'] }}/{{ $sampleData['total_fields'] }}
{{-- Button Group: View + Dropdown (Cancel & Reject) --}}
{{-- Items Table --}}
{{-- CHANGED: Header font increased to match LSTSMP standard (removed small size classes) --}} @if(count($items) > 0) @foreach($items as $i => $item) @endforeach @else @endif
No Detail Item Jadwal Line Kode Material COA ROLL Kode Jumbo Tgl COA Note QC
{{-- CHANGED: Upgraded to text-sm --}} {{ $i + 1 }}
{{ $item['aplikasi'] }}

{{ $item['item'] }}

{{ !empty($item['jadwal_produksi']) && $item['jadwal_produksi'] != '-' ? \Carbon\Carbon::parse($item['jadwal_produksi'])->format('d/m/Y') : '-' }} {{ $item['line_produksi'] ?: '-' }} @if(!empty($item['kode_material']) && $item['kode_material'] != '-') {{-- CHANGED: Upgraded badge text size slightly by context --}} {{ $item['kode_material'] }} @else - {{-- text-sm --}} @endif @if($item['needs_coa_roll']) @if($item['has_coa']) {{ $item['nomor_coa'] }} @else - @endif @else - @endif @if($item['needs_coa_roll']) @if($item['has_roll']) {{ $item['nomor_roll'] }} @else - @endif @else - @endif @if(!empty($item['nomor_jumbo']) && $item['nomor_jumbo'] != '-') {{ $item['nomor_jumbo'] }} @else - @endif {{ !empty($item['tanggal_coa']) && $item['tanggal_coa'] != '-' ? \Carbon\Carbon::parse($item['tanggal_coa'])->format('d/m/Y') : '-' }} {{ $item['qc_note'] ?? '-' }}
Tidak ada detail item
@endforeach
@endif
{{-- Cancel Sample Modal --}} {{-- Reject Sample Modal (Dihapus karena diganti Swal.fire) --}} @push('js') @endpush @endsection