@extends('layouts.app') @section('title', 'Element 12: Measurement & Improvement') @section('content')
Measure and analyze performance for continuous improvement
{{ $kpis->count() }}
Total KPIs defined
{{ $achievementRate }}%
KPI achievement rate
{{ $inspections->where('status', 'completed')->count() }}
of {{ $inspections->count() }} inspections completed
{{ $completionRate }}%
Actions completed
{{ $lastKpiUpdate->kpi_name }}
Updated {{ $lastKpiUpdate->updated_at->diffForHumans() }}
@elseNo recent updates
@endif{{ Str::limit($lastInspection->inspection_title, 30) }}
{{ $lastInspection->scheduled_date ? $lastInspection->scheduled_date->format('d M Y') : 'N/A' }}
@elseNo inspections found
@endif{{ Str::limit($latestAction->action_title, 30) }}
Status: {{ ucfirst($latestAction->status) }}
@elseNo actions found
@endif| KPI Number | KPI Name | Category | Target | Current | Achievement | Frequency | Status | Last Review |
|---|---|---|---|---|---|---|---|---|
| {{ $kpi->kpi_number }} | {{ $kpi->kpi_name }} | {{ $kpi->category }} | {{ $kpi->target_value }} {{ $kpi->measurement_unit }} | @if($kpi->current_value) {{ $kpi->current_value }} {{ $kpi->measurement_unit }} @else Not measured @endif |
@if($kpi->current_value && $kpi->target_value > 0)
@php
$achievement = round(($kpi->current_value / $kpi->target_value) * 100);
@endphp
|
{{ $kpi->measurement_frequency }} | {{ ucfirst($kpi->status) }} | {{ $kpi->updated_at->diffForHumans() }} |
| No performance KPIs defined | ||||||||
| Inspection Number | Title | Type | Scheduled Date | Inspector | Status | Rating | Follow-up |
|---|---|---|---|---|---|---|---|
| {{ $inspection->inspection_number }} | {{ Str::limit($inspection->inspection_title, 40) }} | {{ str_replace('_', ' ', ucfirst($inspection->inspection_type)) }} | {{ $inspection->scheduled_date ? $inspection->scheduled_date->format('d M Y') : 'N/A' }} | {{ $inspection->inspector_name }} | {{ ucfirst($inspection->status) }} | @if($inspection->overall_rating) @else Not rated @endif | {{ $inspection->follow_up_required ? 'Yes' : 'No' }} |
| No quality inspections found | |||||||
| Action Number | Title | Type | Priority | Target Date | Responsible | Status | Verification | Effectiveness |
|---|---|---|---|---|---|---|---|---|
| {{ $action->action_number }} | {{ Str::limit($action->action_title, 40) }} | {{ str_replace('_', ' ', ucfirst($action->action_type)) }} | {{ ucfirst($action->priority) }} | {{ $action->target_completion_date ? $action->target_completion_date->format('d M Y') : 'N/A' }} | {{ $action->responsible_person }} | {{ ucfirst($action->status) }} | {{ str_replace('_', ' ', ucfirst($action->verification_status)) }} | @if($action->effectiveness_rating && $action->effectiveness_rating !== 'not_assessed') @else Not assessed @endif |
| No improvement actions tracked | ||||||||