@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Report Closing Audit'])
@if (!empty($grouped) && count($grouped))
{{-- HEADER REPORT --}}
Report Closing Audit {{ strtoupper($audit_type) }})
ISO: @if (!empty($grouped)) {{ $list->pluck('iso_code')->unique()->implode(', ') }} @else - @endif @if (!empty($periode_awal) && !empty($periode_akhir)) Periode : @if ($audit_type == 'external') - @else {{ \Carbon\Carbon::parse($periode_awal)->format('d M Y') }} - {{ \Carbon\Carbon::parse($periode_akhir)->format('d M Y') }} @endif @endif OPEN : {{ $totalOpen }}   
{{-- TOMBOL EXPORT --}}
{{-- PDF --}}
@csrf @if ($audit_type == 'external') @endif
{{-- EXCEL --}}
@csrf @if ($audit_type == 'external') @endif
{{-- TABEL DATA --}}
@foreach ($list as $row) @endforeach
No Departemen Standar ISO Kategori Klausul Temuan Status
{{ $list->firstItem() + $loop->index }} {{ $row->department }} {{ $row->iso_code }}
{{ $row->iso_name }}
{{ $row->category }} {!! nl2br(str_replace('; ', "\n", $row->clause_text ?? '-')) !!} @if (!empty($row->problem)) P : {{ $row->problem }}
@endif @if (!empty($row->analysis)) L : {{ $row->analysis }}
@endif @if (!empty($row->correction)) O : {{ $row->correction }}
@endif @if (!empty($row->corrective_action)) R : {{ $row->corrective_action }} @endif
OPEN
@if ($list->hasPages())
Menampilkan {{ $list->firstItem() }}–{{ $list->lastItem() }} dari {{ $list->total() }} NCR
{{ $list->links() }}
@endif
@else
Data tidak ditemukan
Silakan ubah filter atau pilih data yang tersedia
@endif
@endsection