@extends('layouts.app') @section('title', 'Manufacturing Dashboard') @section('content')

Manufacturing Dashboard

@include('manufacturing.partials.navigation')

{{ $data['production']['today']['orders_completed'] ?? 0 }}

Orders Completed Today

More info

{{ $data['inventory']['raw_materials']['total_items'] ?? 0 }}

Raw Materials

More info

{{ $data['quality']['overall']['pending'] ?? 0 }}

Pending QC Inspections

More info

{{ $data['maintenance']['breakdown'] ?? 0 }}

Machines in Breakdown

More info

Production Trend (Last 30 Days)

Quality Pass Rate

Passed: {{ $data['quality']['today']['passed'] ?? 0 }} Failed: {{ $data['quality']['today']['failed'] ?? 0 }}

Low Stock Alerts

@if(isset($data['low_stock_alert']))
@if(!empty($data['low_stock_alert']['raw_materials']))
Raw Materials
@foreach($data['low_stock_alert']['raw_materials'] as $item) @endforeach
Material Current Stock Reorder Point
{{ $item['name'] }} {{ $item['current_stock'] }} {{ $item['unit'] }} {{ $item['reorder_point'] }}
@endif @if(!empty($data['low_stock_alert']['finished_products']))
Finished Products
@foreach($data['low_stock_alert']['finished_products'] as $item) @endforeach
Product Current Stock Reorder Point
{{ $item['name'] }} {{ $item['current_stock'] }} {{ $item['unit'] }} {{ $item['reorder_point'] }}
@endif
@endif

Recent Production Orders

@forelse($data['recent_orders'] ?? [] as $order) @empty @endforelse
Order # Product Quantity Status Progress Actions
{{ $order['order_number'] }} {{ $order['product'] }} {{ number_format($order['quantity']) }} @php $statusColors = [ 'pending' => 'warning', 'released' => 'info', 'in_progress' => 'primary', 'completed' => 'success', 'closed' => 'secondary', 'cancelled' => 'danger' ]; $color = $statusColors[$order['status']] ?? 'secondary'; @endphp {{ ucfirst($order['status']) }}
{{ round($order['progress']) }}%
No recent orders
@endsection