@extends('layouts.app') @section('title', 'تقرير أداء الفنيين') @section('breadcrumb') @endsection @section('content') @include('reports._filter')
الأداء حسب الفني
@forelse ($byTechnician as $row) @php $pct = $row['total'] ? round($row['completed'] / $row['total'] * 100) : 0; @endphp @empty @endforelse
الفنيالإجماليمكتملةمفتوحةملغاةنسبة الإنجاز
{{ $row['name'] }} {{ $row['total'] }} {{ $row['completed'] }} {{ $row['open'] }} {{ $row['cancelled'] }}
{{ $pct }}%
لا توجد بيانات
التوزيع حسب الحالة
@foreach (\App\Models\Installation::STATUSES as $key => $label) @php $count = $byStatus[$key] ?? 0; $pct = $summary['total'] ? round($count / $summary['total'] * 100) : 0; @endphp
{{ $label }} {{ $count }} ({{ $pct }}%)
@endforeach
تفاصيل أوامر التركيب ({{ $rows->count() }})
@forelse ($rows as $inst) @empty @endforelse
الرقمالعميلالمركبةالفنيالموعدالإنجازالحالة
{{ $inst->code }} {{ $inst->customer?->display_name ?? '—' }} {{ $inst->vehicle?->plate_number ?? '—' }} {{ $inst->technician?->name ?? '—' }} {{ arabicDate($inst->scheduled_at, true) }} {{ arabicDate($inst->completed_at, true) }} {!! badge($inst->status_label, $inst->status_color) !!}
لا توجد أوامر في هذه الفترة
@endsection