PRODUCTION BATCH REPORT
{{ $production->batch_no }}
{{ $production->date->format('d-M-Y') }}
{{ $production->machine ?? '-' }}
{{ ucfirst($production->status) }}
@php
$totalRawWeight = $production->inputItems->sum('quantity');
$totalFinishWeight = $production->outputItems->sum('quantity');
$totalWastageWeight = $production->wastageItems ? $production->wastageItems->sum('quantity') : 0;
$totalFinishAmount = $production->outputItems->sum('amount');
@endphp
RAW MATERIAL
| Description |
Weight |
% |
Rate |
Amount |
@foreach($production->inputItems as $item)
@php
$percentage = $totalRawWeight > 0 ? ($item->quantity / $totalRawWeight) * 100 : 0;
@endphp
| {{ $item->item->name }} |
{{ number_format($item->quantity, 0) }} |
{{ number_format($percentage, 2) }} |
{{ number_format($item->rate, 2) }} |
{{ number_format($item->amount, 0) }} |
@endforeach
@if($totalWastageWeight > 0)
| Panjee |
{{ number_format($totalWastageWeight, 0) }} |
|
@endif
| TOTAL |
{{ number_format($totalRawWeight, 0) }} |
100.00 |
|
{{ number_format($production->raw_material_cost, 0) }} |
FINISH MATERIAL
| Description |
Weight |
Rate |
Amount |
@foreach($production->outputItems as $item)
| {{ $item->item->name }} |
{{ number_format($item->quantity, 0) }} |
{{ number_format($item->rate, 2) }} |
{{ number_format($item->amount, 0) }} |
@endforeach
| Panjee |
{{ number_format($totalRawWeight, 0) }} |
|
| TOTAL |
{{ number_format($totalFinishWeight, 0) }} |
|
{{ number_format($totalFinishAmount, 0) }} |
💰 Production Cost Summary
| Raw Material Cost |
Rs. {{ number_format($production->raw_material_cost, 2) }} |
| Agent Commission |
Rs. {{ number_format($production->agent_commission, 2) }} |
| Transportation Cost |
Rs. {{ number_format($production->transportation_cost, 2) }} |
| Labor Cost |
Rs. {{ number_format($production->labor_cost, 2) }} |
| Electricity Cost |
Rs. {{ number_format($production->electricity_cost, 2) }} |
| Other Expenses |
Rs. {{ number_format($production->other_expenses, 2) }} |
@if($production->other_expenses_description)
| {{ $production->other_expenses_description }} |
@endif
| TOTAL PRODUCTION COST |
Rs. {{ number_format($production->total_cost, 2) }} |
CALCULATED
COST PER UNIT
Rs. {{ number_format($production->cost_per_unit, 2) }}
per KG
@if($production->narration)
Narration: {{ $production->narration }}
@endif
Printed on: {{ now()->format('d-M-Y h:i A') }} | Created by: {{ $production->creator->name ?? 'System' }}