@extends('layouts.main') @push('styles') @endpush @section('content')

Bricks Production Summary

@foreach ($summary as $index => $item) @endforeach
# Brick Type Open Stock Output Closed Stock Output Total Output
{{ $index + 1 }} {{ $item->brickType->name }} {{ number_format($item->open_output) }} {{ number_format($item->closed_output) }} {{ number_format($item->open_output + $item->closed_output) }}

Expected vs Actual Output

@foreach ($totals as $index => $item) @php $diff = $item->actual_output - $item->expected_output; $class = $diff >= 0 ? 'text-success' : 'text-danger'; $prefix = $diff >= 0 ? '+' : '-'; @endphp @endforeach
# Brick Type Expected Output Actual Output Extra/Short Output
{{ $index + 1 }} {{ $item->brickType->name ?? 'Unknown' }} {{ number_format($item->expected_output) }} {{ number_format($item->actual_output) }} {{ $prefix }}{{ number_format(abs($diff)) }}
@endsection @push('scripts') @endpush