@extends('admin.layouts.app') @section('title', 'Wastages') @section('page_title', 'Wastage Management') @section('content')
Wastages List
Add Wastage
@forelse($wastages as $wastage) @foreach($wastage->items as $item) @endforeach @empty @endforelse
ID Date Shipment Number Product Name Unit Quantity Rate Amount Actions
{{ $wastage->id }} {{ date('d-m-Y', strtotime($wastage->date)) }} {{ $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) }}
@csrf @method('DELETE')
No wastage records found
{{ $wastages->links() }}
@endsection