@extends('layouts.app') @section('title', 'Employee Task Progress Report') @section('breadcrumb') Reports / Employee Task Progress @endsection @section('content')
Job-wise task completion status, hourly rate, and amount per factory employee
| Job | Task | Status | Allocated | Logged | Hourly Rate | Amount | Progress | % Done |
|---|---|---|---|---|---|---|---|---|
| {{ $row['job_number'] }} | {{ $row['task_name'] }} | @php $badge = match($row['task_status']) { 'completed' => 'badge-green', 'in_progress' => 'badge-blue', 'paused' => 'badge-yellow', default => 'badge-gray', }; @endphp {{ ucfirst(str_replace('_',' ', $row['task_status'])) }} | {{ $row['allocated_hours'] ? number_format($row['allocated_hours'],1).'h' : '—' }} | {{ number_format($row['logged_hours'],2) }}h | {{-- Hourly Rate: snapshotted at task-completion time --}}@if(isset($row['hourly_rate']) && $row['hourly_rate'] > 0) ${{ number_format($row['hourly_rate'], 2) }} @else — @endif | {{-- Amount = logged hours × snapshotted hourly rate --}}@if(isset($row['total_amount']) && $row['total_amount'] > 0) ${{ number_format($row['total_amount'], 2) }} @else — @endif |
@if($row['allocated_hours'])
|
{{ $row['allocated_hours'] ? $row['pct'].'%' : '—' }} |