@extends('layouts.app')
@section('heading', 'Return or exchange')
@section('subheading', 'Exchanges within '.$exchangeWindow.' days. Refunds are '.($refundsAllowed ? 'allowed' : 'off unless a manager approves').'.')
@section('content')
@if(!empty($matches) && $matches->isNotEmpty())
Returnable sales for this item
Pick the sale this item came from, then return that individual line.
@foreach($matches as $row)
@php $item = $row['sale_item']; @endphp
{{ $item->sale->number }}
{{ $item->sale->created_at->format('d M Y') }}
· {{ $item->sale->customer->name ?? 'Walk-in' }}
· {{ $item->description }}
· {{ $row['left'] }} left to return
· {{ money($item->line_total) }}
Return this item
@endforeach
@elseif(filled($barcode ?? null) && empty($sale))
No returnable sales found for “{{ $barcode }}” at this store.
@endif
@if($sale)
@endif
@endsection