{{-- This file: runs/index.blade.php --}} @extends('procurement::layouts.master') @section('title','Production Runs') @section('content') @include('procurement::components.partials.page_header',['title'=>'Production Runs','actionRoute'=>route('procurement.runs.create'),'actionLabel'=>'New Run'])
Clear
@include('procurement::components.partials.sortable_th', ['label'=>'Run','field'=>'run']) @include('procurement::components.partials.sortable_th', ['label'=>'Project','field'=>'project']) @include('procurement::components.partials.sortable_th', ['label'=>'Status','field'=>'status']) @include('procurement::components.partials.sortable_th', ['label'=>'Target Qty','field'=>'target_qty','class'=>'text-center']) @include('procurement::components.partials.sortable_th', ['label'=>'Actual Qty','field'=>'actual_qty','class'=>'text-center']) @include('procurement::components.partials.sortable_th', ['label'=>'Target COGS','field'=>'target_cogs','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Actual COGS','field'=>'actual_cogs','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Sell Price','field'=>'sell_price','class'=>'text-right']) @forelse($runs as $run) @empty @endforelse
Margin
{{ $run->run_number }} {{ $run->project->name ?? '—' }} {{ ucfirst(str_replace('_',' ',$run->status)) }} {{ $run->target_qty }} {{ $run->actual_qty ?: '—' }} ${{ number_format($run->target_cogs,2) }} ${{ $run->actual_cogs > 0 ? number_format($run->actual_cogs,2) : '—' }} ${{ number_format($run->sell_price,2) }} {{ $run->actual_cogs > 0 ? number_format($run->margin,1).'%' : '—' }} Edit
No runs yet.
{{ $runs->withQueryString()->links() }} @endsection