@extends('procurement::layouts.master')
@section('title',$run->run_number)
@section('content')
{{ $run->project->name }} — {{ $run->run_number }}
- Status
- {{ ucfirst(str_replace('_',' ',$run->status)) }}
- Target Qty
- {{ $run->target_qty }}
- Actual Qty
- {{ $run->actual_qty ?: '—' }}
- Target COGS
- ${{ number_format($run->target_cogs,4) }}
- Actual COGS
- ${{ $run->actual_cogs > 0 ? number_format($run->actual_cogs,4) : '—' }}
- Sell Price
- ${{ number_format($run->sell_price,2) }}
- Margin
- {{ $run->actual_cogs > 0 ? number_format($run->margin,1).'%' : '—' }}
- Start
- {{ $run->start_date?->format('M j, Y') ?? '—' }}
- End
- {{ $run->end_date?->format('M j, Y') ?? '—' }}
| PO # | Supplier | Status | Total |
@forelse($run->orders as $order)
| {{ $order->po_number }} |
{{ $order->supplier->name ?? '—' }} |
{{ ucfirst($order->status) }} |
${{ number_format($order->total_amount,2) }} |
@empty
| No orders linked to this run |
@endforelse
@endsection