@extends('layouts.app') @section('content')
| Date | Barcode | Product | Branch | Qty | Stock Before | Stock After | Unit Cost | Total Cost | Responsible Person | Reason | Added By |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $damage->damage_date?->format('Y-m-d H:i') }} | {{ $damage->product?->barcode ?: '-' }} | {{ $damage->product?->name ?: '-' }} | {{ $damage->branch?->name ?: '-' }} | {{ number_format($damage->quantity, 2) }} | {{ number_format($damage->stock_before, 2) }} | {{ number_format($damage->stock_after, 2) }} | {{ \App\Models\SystemSetting::formatMoney($damage->unit_cost) }} | {{ \App\Models\SystemSetting::formatMoney($damage->total_cost) }} | {{ $damage->responsible_person ?: '-' }} | {{ $damage->reason ?: '-' }} | {{ $damage->user?->name ?: '-' }} |
| No damaged products recorded. | |||||||||||
| Totals | {{ number_format($summary->quantity, 2) }} | {{ \App\Models\SystemSetting::formatMoney($summary->value) }} | |||||||||