@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@csrf
Insert Test Lab Result
@if ($request_info && $match_results && $match_results->count() > 0) {{-- Request Info & Supplier Info --}}
{{-- ICON REQUEST (BIRU) --}}
{{-- Atur ukuran icon manual pakai style font-size --}}
Request No: {{ $request_info->request_no }}

{{ $request_info->customer_name }} | {{ $request_info->customer_color_code }}

{{-- ICON SUPPLIER (HIJAU) --}}
Supplier

{{ $supplier_info->to ?? ($supplier_info->attn ?? '-') }}

{{-- Target Test Lab Info --}} @php $targetTestLab = $target_test_lab ?? null; @endphp @if ($targetTestLab)
Target Test Lab (Request No: {{ $request_no }})
@if ($authorize->edit == '1') @endif

L*

{{ $targetTestLab->L !== null ? number_format($targetTestLab->L, 2) : '-' }}

a*

{{ $targetTestLab->a !== null ? number_format($targetTestLab->a, 2) : '-' }}

b*

{{ $targetTestLab->b !== null ? number_format($targetTestLab->b, 2) : '-' }}

C*

{{ $targetTestLab->C !== null ? number_format($targetTestLab->C, 2) : '-' }}

h

{{ $targetTestLab->h !== null ? number_format($targetTestLab->h, 2) : '-' }}

@if ($targetTestLab->created_at || $targetTestLab->user_create)
@if ($targetTestLab->user_create) Created by: {{ $targetTestLab->user_create }} @endif @if ($targetTestLab->created_at) | {{ date('d M Y H:i', strtotime($targetTestLab->created_at)) }} @endif
@endif
@else
Target Test Lab belum diatur!

Silakan atur Target Test Lab terlebih dahulu untuk Request No: {{ $request_no }} sebelum mengisi Test Lab Result.

@if ($authorize->add == '1')
@endif
@endif
{{-- Form Input Test Lab Result untuk setiap sample --}}
Test Lab Result - Supplier: {{ $supplier_info->to ?? ($supplier_info->attn ?? '-') }}
@if (!$targetTestLab)
Form Test Lab Terkunci

Silakan isi Target Test Lab terlebih dahulu sebelum mengisi Test Lab Result.

@endif @foreach ($match_results as $matchResult) @php $existingLab = $existing_test_labs[$matchResult->id] ?? null; $isHighlighted = isset($highlight_id) && $highlight_id == $matchResult->id; @endphp
@if($isHighlighted) {{ $matchResult->code }} @else {{ $matchResult->code }} @endif {{ $matchResult->supplier_to ?? $matchResult->supplier_name }}
@if($isHighlighted) Dipilih @endif @if ($existingLab) Data Tersedia @endif
{{-- Display Delta jika sudah ada --}} @if ($existingLab && ($existingLab->delta_E || $existingLab->delta_L))
Delta: ΔL*: {{ $existingLab->delta_L ?? '-' }} Δa*: {{ $existingLab->delta_a ?? '-' }} Δb*: {{ $existingLab->delta_b ?? '-' }} ΔE*: {{ $existingLab->delta_E ?? '-' }}
@endif
@endforeach {{-- Info Delta --}}
Delta (ΔL, Δa, Δb, ΔE) akan dihitung otomatis berdasarkan Target Test Lab saat menyimpan.
@else
Tidak ada data match_result

Tidak ada data match_result untuk Request No ini. Silakan kembali ke halaman sebelumnya.

@endif
{{-- MODAL TARGET SAMPLE untuk halaman add --}} @endsection @push('js') @endpush