{{-- resources/views/dashboard/list.blade.php --}} @extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => $dashboardTitle ?? 'Dashboard NCR'])
{{-- HERO --}}
{{ $dashboardTitle ?? 'Dashboard Audit NCR' }}
Total NCR : {{ $totalNcr }}   •   {{ $dashboardScopeMessage ?? 'Monitoring status dan tren Non Conformity Report' }}
Scope: {{ $dashboardScopeLabel ?? 'Semua departemen' }}
@if($showNcrTypeFilter ?? true)
@endif
{{-- CARD --}}
Entry
{{ $totalEntry }}
On Progress
{{ $totalProgress }}
In Review
{{ $totalReview }}
Closed
{{ $totalClosed }}
{{-- CHART --}}
NCR Time Series Analytics
Trend status NCR selama 6 bulan terakhir
Distribusi Kategori
@forelse($categoryDistribution as $cat)
{{ $cat->name }} {{ $cat->total }}
@empty
Belum ada distribusi kategori untuk scope ini.
@endforelse
NCR Terbaru
@forelse($recentNcr as $row)
{{ $row->clause_number ?? '-' }} - {{ $row->clause_name ?? '-' }} {{ $row->iso_code ?? '-' }} - {{ $row->iso_name ?? '-' }}
{{ $row->department }} {{ $row->ncr_type }}
{{ !empty($row->audit_date) ? date('d-m-Y', strtotime($row->audit_date)) : '-' }} @if($row->status == 'ENTRY') ENTRY @elseif($row->status == 'ON_PROGRESS') ON PROGRESS @elseif($row->status == 'IN_REVIEW') IN REVIEW @else CLOSED @endif
@empty
Belum ada NCR terbaru untuk scope ini.
@endforelse
@if(($role ?? '') == 'auditr')
Jadwal Audit Saya
Sesi audit aktif yang menjadi dasar scope dashboard auditor.
@forelse($auditorSchedules as $schedule)
{{ $schedule->department_name ?? '-' }}
{{ $schedule->schedule_title ?? '-' }}
{{ !empty($schedule->session_date) ? date('d-m-Y', strtotime($schedule->session_date)) : '-' }} {{ !empty($schedule->start_time) ? date('H:i', strtotime($schedule->start_time)) : '-' }} - {{ !empty($schedule->end_time) ? date('H:i', strtotime($schedule->end_time)) : '-' }}
@if(!empty($schedule->pic_name) || $schedule->is_lead_auditor == '1')
@if($schedule->is_lead_auditor == '1') Lead Auditor @endif @if(!empty($schedule->pic_name)) PIC: {{ $schedule->pic_name }} @endif
@endif
@empty
Belum ada jadwal audit aktif yang terhubung ke akun auditor ini.
@endforelse
@endif {{-- TABLE --}}
Statistik Departemen
@forelse($deptSummary as $d) @empty @endforelse
Departemen Jumlah NCR
{{ $d->name }} {{ $d->total }}
Belum ada departemen yang masuk scope dashboard ini.
@endsection @push('js') @endpush