@extends('layouts.dashboard.superadminapp') @section('title', 'Production In Progress') @push('styles') @endpush @section('content')

Production In Progress

Back to Planning
@forelse($routeCards as $rc) @php // Calculate Progress $total = $rc->processes->count(); $completed = $rc->processes->where('status', 'completed')->count(); // Or 'approved' based on logic // If logic uses 'approved' for completion, adjust here. // Usually 'completed' or 'approved' signifies done. // Checking controller logic: startProcess -> qc -> approved. So 'approved' is done. $approvedCount = $rc->processes->where('status', 'approved')->count(); $percent = $total > 0 ? round(($approvedCount / $total) * 100) : 0; @endphp
{{ $rc->route_no }}
{{Str::limit($rc->company_name, 25) }}
In Production
RC Date: {{ $rc->route_date ? date('d M Y', strtotime($rc->route_date)) : '-' }}
Production Progress {{ $percent }}%
Planned By: {{ $rc->approved_by ?? 'Admin' }}
View Production Board
@empty
No production lines active.

Moves Route Cards here from "Ready to Production".

@endforelse
@endsection