@extends('layouts.management') @section('content')

Production Management

Assembly, manufacturing, and operational maintenance batch tracking.

Total Production Orders
{{ $totalOrders }}
Completed Orders
{{ $completedOrders }}
Total Output (Units)
{{ number_format($totalActualQty, 2) }}
Production Efficiency
{{ number_format($efficiency, 1) }}%

Recent Production Orders

    @forelse($recentOrders as $order)
  • {{ $order->production_number ?? 'PRD-'.$order->id }} - {{ $order->finishedItem->name ?? 'Unknown Finished Good' }}

    {{ $order->businessUnit->name ?? 'Unknown BU' }} · Created {{ $order->created_at->format('M d, Y') }}

    {{ ucfirst($order->status->value ?? $order->status) }}

    {{ number_format($order->actual_quantity, 2) }} / {{ number_format($order->target_quantity, 2) }}

  • @empty
  • No recent production orders found.
  • @endforelse

Top Materials Consumed

    @forelse($topMaterials as $material)
  • {{ $material->name }}

    Planned: {{ number_format($material->total_planned, 2) }}

    Actual: {{ number_format($material->total_actual, 2) }}

    @php $perc = $material->total_planned > 0 ? ($material->total_actual / $material->total_planned) * 100 : 0; $color = $perc > 105 ? 'bg-rose-500' : 'bg-emerald-500'; @endphp
  • @empty
  • No materials consumed in this period.
  • @endforelse
@endsection