@extends('layouts.app', ['page' => 'Production Orders', 'pageSlug' => 'production-orders', 'section' => 'manufacturing']) @section('content')

Production Orders

@if($errors->any())
Error:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if($productionOrders->count() > 0)
@foreach($productionOrders as $order) @endforeach
Order # Product Quantity Status Planned Start Planned End Created By Actions
{{ $order->order_number }} {{ $order->product->name }} @if($order->quantity_produced > 0) {{ number_format($order->quantity_produced, 0) }} produced @else Not produced yet @endif @switch($order->status) @case('planned') Planned @break @case('in_progress') In Progress @break @case('completed') Completed @break @case('cancelled') Cancelled @break @default {{ ucfirst($order->status) }} @endswitch @if($order->planned_start_date) {{ $order->planned_start_date->format('M d, Y') }} @else Not set @endif @if($order->planned_end_date) {{ $order->planned_end_date->format('M d, Y') }} @else Not set @endif {{ $order->createdBy->name }}
@csrf @method('delete')
{{ $productionOrders->links() }}
@else
No Production Orders Found

Create your first production order to get started.

Create Production Order
@endif
@endsection