@extends('layouts.admin') @section('title', 'Process Refund') @section('subtitle', 'Invoice: ' . $invoice->invoice_number) @section('content')
@csrf {{-- Invoice Summary --}}

Invoice Summary

LKR {{ number_format($invoice->total, 2) }}
Date: {{ $invoice->created_at->format('M d, Y H:i') }}
Customer: {{ $invoice->customer_name ?? 'Walk-in' }}
Items: {{ $invoice->items->count() }} items
{{-- Refund Type --}}

Refund Type

{{-- Partial Refund Items --}}

Select Items to Refund

@foreach($invoice->items as $item) @endforeach
Product Sold Qty Refund Qty Unit Price
{{ $item->product_name }} {{ $item->quantity }} LKR {{ number_format($item->unit_price, 2) }}
{{-- Reason --}}

Reason for Refund *

@error('reason')

{{ $message }}

@enderror
Cancel
@endsection