@extends('layouts.app') @section('content')

لوحة تحكم الإنتاج والجودة 📊

إجمالي المخطط

{{ number_format($summary['total_planned']) }}

قطعة مستهدفة
إجمالي الفعلي

{{ number_format($summary['total_actual']) }}

إنتاج تام
إجمالي الهالك

{{ number_format($summary['total_rejected']) }}

فاقد إنتاج
متوسط الجودة (Yield)

{{ $summary['avg_yield'] }}%

تفاصيل ورديات الإنتاج
@forelse($productionShifts as $pShift) @empty @endforelse
التاريخ الوردية الماكينة المخطط الفعلي الإنجاز % الهالك الجودة %
{{ $pShift->date }} {{ $pShift->shift->name_ar ?? 'وردية' }} {{ $pShift->machine->name_ar ?? 'ماكينة' }} {{ $pShift->planned_quantity }} {{ $pShift->actual_quantity }}
{{ $pShift->achievement_rate }}%
{{ $pShift->rejected_quantity }} @php $color = $pShift->yield_rate >= 95 ? 'bg-success' : ($pShift->yield_rate >= 85 ? 'bg-warning text-dark' : 'bg-danger'); @endphp {{ $pShift->yield_rate }}%
لا توجد بيانات لهذه الفترة
@endsection