@extends('admin.layouts.app')
@section('title', 'Customer Return Details')
@section('content')
<div class="page-head"><div><h1 class="page-title">Customer Return Details</h1><div class="page-subtitle">Return {{ $saleReturn->return_no }} · Invoice {{ $saleReturn->invoice_no }}</div></div></div>
<div class="card"><div class="table-wrap"><table class="table"><thead><tr><th>Product</th><th>Code</th><th>Qty</th><th>Unit Price</th><th>Discount</th><th>Line Total</th><th>Restock</th></tr></thead><tbody>@foreach($saleReturn->items as $item)<tr><td>{{ $item->product_name }}</td><td>{{ $item->product_code }}</td><td>{{ $item->qty }}</td><td>{{ number_format((float)$item->unit_price,2) }}</td><td>{{ number_format((float)$item->discount,2) }}</td><td>{{ number_format((float)$item->line_total,2) }}</td><td>{{ $item->restock ? 'Yes':'No' }}</td></tr>@endforeach</tbody></table></div><div class="card-body"><strong>Refund Total:</strong> {{ number_format((float)$saleReturn->refund_total,2) }}</div></div>
@endsection