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

Production In Progress

Back to Planning
@forelse($productionPlans as $plan) @php $total = $plan->processes->count(); $startDate = $plan->processes->min('start_date') ?? $plan->project_start_date; $endDate = $plan->processes->max('end_date') ?? $plan->project_start_date; $priorityClass = strtolower($plan->priority ?? '') === 'high' ? 'text-danger' : (strtolower($plan->priority ?? '') === 'medium' ? 'text-warning' : 'text-success'); @endphp
{{ $plan->plan_no }}
{{ Str::limit($plan->company_name, 25) }}
Production Approved
Plan Date: {{ $plan->plan_date ? date('d M Y', strtotime($plan->plan_date)) : '-' }}
Start: {{ $startDate ? date('d M Y h:i A', strtotime($startDate)) : '-' }}
End: {{ $endDate ? date('d M Y h:i A', strtotime($endDate)) : '-' }}
Priority: {{ $plan->priority ?? 'N/A' }}
Processes Scheduled {{ $total }}
Real-time logs: {{ $plan->production_logs_count ?? 0 }}
Planned By: {{ $plan->approved_by ?? 'Admin' }}
View Plan Details
@empty
No production approved plans.

Move approved plans from "Ready to Production" to show them here.

@endforelse
@endsection @push('scripts') @endpush