{{-- resources/views/returns/index.blade.php --}} @extends('layouts.app') @section('title', 'Return History') @section('content')
| # | Type | Party | Product | Qty | Unit Price | Total | Date | Note |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | @if($entry->type === 'customer') Customer @else Supplier @endif | @if($entry->type === 'customer' && $entry->customer) {{ $entry->customer->name }} @elseif($entry->supplier) {{ $entry->supplier->name }} @else — @endif | {{ optional($entry->product)->name ?? '—' }} | {{ $entry->qty }} | {{ number_format($entry->unit_price, 2) }} | {{ number_format($entry->total, 2) }} | {{ \Carbon\Carbon::parse($entry->date)->format('d-m-Y') }} | {{ $entry->note }} |
| No returns found. | ||||||||