@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [] ) ) @php($headingOptions = [ ' My Merchants', ]) @php($exceptionCategories = [ 'NSF', 'Return Item', 'Unauthorized', 'Stop Payment', 'Account Closed', 'Refer to Maker', 'Uncollected Funds', 'Unable to Locate', 'Frozen Account', 'Bad Debt', 'Duplicate Entry', 'Stale Date', 'Postdated', 'Missing Signature', 'Irregular Signature', 'Altered Check', 'Endorsement Missing', 'Other' ]) @extends('admin.layouts.layout', $headerOption) @section('content')
{{-- Filter Bar --}}
{{-- Results grouped by exception category --}}
@foreach($exceptionCategories as $cat) @php($catData = collect($data ?? [])->filter(fn($r) => stripos($r->description ?? '', $cat) !== false || stripos($r->reason ?? '', $cat) !== false)) @if($catData->isNotEmpty() || request('keywords') === null)
{{-- Teal group-header row --}}
{{ $cat }}
{{ $catData->count() }} items
@if($catData->isNotEmpty())
@foreach($catData as $row) @endforeach
Merchant MID Date Amount Description
{{ $row->merchant_dba ?? $row->dba ?? '—' }} {{ $row->merchant_mid ?? $row->mid ?? '—' }} {{ $row->transaction_date ? \App\Helpers\Helper::showdate($row->transaction_date, false) : '—' }} ${{ number_format($row->amount ?? 0, 2) }} {{ $row->description ?? $row->reason ?? '—' }}
@else

No records in this category.

@endif
@endif @endforeach @if(empty($data))
No deposit exceptions found. Adjust filters to see results.
@endif
@endsection @push('page_script') @endpush