{{-- LOGO --}} {{-- COMPANY --}} {{-- SPACER --}}

PT MULTI SPUNINDO JAYA Tbk

Nonwovens Manufacturer

LOG STATUS AUDIT
{{ strtoupper($audit_type) }} AUDIT @if (!empty($periode_awal) && !empty($periode_akhir)) {{ \Carbon\Carbon::parse($periode_awal)->format('d F Y') }} - {{ \Carbon\Carbon::parse($periode_akhir)->format('d F Y') }} @endif
Positif Observation :
@php $obs = []; if (!empty($positive_observation)) { $obs = array_filter(array_map('trim', explode('>', $positive_observation))); } @endphp
@foreach ($obs as $o) > {{ $o }}
@endforeach
@foreach ($categories as $cat) @endforeach @foreach ($grouped as $isoName => $deptGroup) {{-- BARIS HEADER ISO --}} @foreach ($deptGroup as $dept => $rows) {{-- BARIS HEADER DEPARTEMEN --}} @foreach ($rows as $ncr) @foreach ($categories as $cat) @endforeach @endforeach @endforeach @php $isoRows = $deptGroup->flatten(1); @endphp @endforeach
No Dept Kategori Uraian Analisa Penyebab Correction Corrective Action Evaluasi Efektivitas Status
{{ str_contains(strtolower($cat->name), 'rekom') ? 'Rekom' : ucfirst(strtolower($cat->name)) }}
{{ $isoName }}
{{ $rows->first()->department_prefix ?? '-' }} {{ $dept }}
{{ $loop->iteration }} {{ $ncr->department_prefix ?? '-' }}
{{ $dept }}
@if (strtoupper($ncr->category_name) == strtoupper($cat->name)) ✔ @endif {{ $ncr->problem ?? '-' }} {{ $ncr->analysis ?? '-' }} {{ $ncr->correction ?? '-' }} {{ $ncr->corrective_action ?? '-' }} {{ $ncr->evaluation ?? '-' }} {{ strtoupper($ncr->report_status) }}
A00.LSA.017.2.3
Total jumlah temuan ketidaksesuaian {{ $isoName }} sebesar {{ $isoRows->count() }} yang terdiri dari: @foreach ($categories as $cat) @php $categoryRows = $isoRows->filter(fn($item) => strtoupper($item->category_name) === strtoupper($cat->name)); @endphp @endforeach
> Ketidaksesuaian {{ $cat->name }} ada {{ $categoryRows->count() }} yaitu: @foreach ($deptGroup as $summaryDept => $summaryRows) @php $count = $summaryRows->filter(fn($item) => strtoupper($item->category_name) === strtoupper($cat->name))->count(); @endphp @if ($count > 0)
{{ $summaryRows->first()->department_prefix ?? '-' }} {{ $summaryDept }}: {{ $count }}
@endif @endforeach
OPEN ON PROGRESS atau IN REVIEW    CLOSED NCR telah ditutup