@extends('admin.layouts.app') @section('title', 'Wastage Details') @section('page_title', 'Wastage Details') @section('content')
Wastage Details
Edit Back
ID: {{ $wastage->id }}
Wastage No: {{ $wastage->wastage_no }}
Date: {{ date('d-m-Y', strtotime($wastage->date)) }}
Total Quantity: {{ $wastage->items->sum('quantity') }}
Total Amount: {{ number_format($wastage->items->sum('amount'), 2) }}

Wastage Items
@foreach($wastage->items as $key => $item) @endforeach
Sl Shipment Number Product Unit Quantity Rate Amount
{{ $key + 1 }} {{ $item->shipment_number ?? '-' }} {{ $item->product->name ?? 'N/A' }} {{ $item->product->unit->short_name ?? 'N/A' }} {{ $item->quantity }} {{ number_format($item->rate, 2) }} {{ number_format($item->amount, 2) }}
Total: {{ number_format($wastage->items->sum('amount'), 2) }}
@if($wastage->notes)
Notes

{{ $wastage->notes }}

@endif
@endsection