@if($showModal)
Performance Tracking - {{ $technician?->full_name }}
@if($technician)
Time Period
@if($periodFilter === 'custom')
Start Date
End Date
@endif Add Record
@if(count($performanceStats) > 0)
Performance Summary
@foreach($performanceStats as $type => $stats)
{{ $stats['current'] }}
{{ $stats['label'] }}
Avg: {{ $stats['average'] }}
@if($type !== 'customer_rating')
Total: {{ $stats['total'] }}
@endif
Records: {{ $stats['count'] }}
@endforeach
@endif @if(count($chartData) > 0)
Performance Trend @foreach($metricTypes as $type => $label) @endforeach
@foreach($chartData as $index => $data)
{{ $data['formatted_value'] }}
{{ \Carbon\Carbon::parse($data['date'])->format('M d') }}
@endforeach
@endif
Performance Records @if($filteredPerformances->count() > 0)
@foreach($filteredPerformances as $performance) @endforeach
Date Metric Value Period Notes Actions
{{ $performance->performance_date->format('M d, Y') }} {{ $metricTypes[$performance->metric_type] ?? $performance->metric_type }} {{ $performance->formatted_value }} {{ ucfirst($performance->period_type) }} @if($performance->notes)
{{ $performance->notes }}
@else - @endif
@else
No performance records found
Start tracking performance by adding records.
Add Performance Record
@endif
@if($editing !== false || $metric_type)
{{ $editing ? 'Edit Performance Record' : 'Add Performance Record' }}
Metric Type @foreach($metricTypes as $type => $label) @endforeach
Value
Date
Period Type @foreach($periodTypes as $type => $label) @endforeach
Notes
{{ $editing ? 'Update Record' : 'Add Record' }} Cancel
@endif @endif
Close
@endif @if (session()->has('message'))
{{ session('message') }}
@endif