@extends('layouts.app') @section('content')

Production Batches

New Production
@if(session('success'))
{{ session('success') }}
@endif
Total Batches
{{ $totals['count'] }}
Raw Material Cost
Rs. {{ number_format($totals['raw_material'], 0) }}
Total Production Cost
Rs. {{ number_format($totals['total_cost'], 0) }}
Output Quantity
{{ number_format($totals['output_qty'], 2) }} KG
Clear
@forelse($productions as $production) @empty @endforelse
Batch No Date Machine Raw Material Other Costs Total Cost Output Qty Cost/Unit Actions
{{ $production->batch_no }} {{ $production->date->format('d-M-Y') }} {{ $production->machine ?? '-' }} Rs. {{ number_format($production->raw_material_cost, 2) }} Rs. {{ number_format($production->total_cost - $production->raw_material_cost, 2) }} Rs. {{ number_format($production->total_cost, 2) }} {{ number_format($production->output_quantity, 2) }} KG Rs. {{ number_format($production->cost_per_unit, 2) }}
@csrf @method('DELETE')
No production batches found. Create first production
@if($productions->hasPages())
{{ $productions->links() }}
@endif
@endsection