ultimatepos/Modules/IndustrialEngineering/Resources/views/cost_scenarios/show.blade.php

14 lines
980 B
PHP

@extends('layouts.app')
@section('title', $scenario->scenario_code)
@section('content')
<section class="content-header"><h1>{{ $scenario->scenario_code }} {{ number_format($scenario->total_cost,2) }}</h1></section>
<section class="content"><div class="box box-primary"><div class="box-body">
<table class="table table-bordered"><thead><tr><th>Item</th><th>Qty</th><th>Unit</th><th>Extended</th><th>Alternate</th></tr></thead><tbody>
@foreach($scenario->lines as $line)
<tr><td>{{ $line->itemMaster?->item_code }}</td><td>{{ $line->quantity }}</td><td>{{ number_format($line->unit_cost,2) }}</td><td>{{ number_format($line->extended_cost,2) }}</td><td>{{ $line->selectedAlternateItem?->item_code ?? '—' }}</td></tr>
@endforeach
</tbody></table>
<p>Material: {{ number_format($scenario->total_material_cost,2) }} | Labor: {{ number_format($scenario->total_labor_cost,2) }} | Machine: {{ number_format($scenario->total_machine_cost,2) }}</p>
</div></div></section>
@endsection