{{-- the statement of one customer (slice 4الف, flow ج۵ «گردش حساب»), rendered ONLY here: by the colleague's «گردش حساب» and the seller's customer page. newest first, a Jalali date, the effect on rials and on metal with its sign, and the balance after the row — that column only when $withBalance (absent, not hidden, for a customer with «دیدن مانده» off). $emptyText / $emptyAction = an empty statement and its way on. slice 4ب: a manual document's reference in its own ; on the panel only ($forSeller) a last column with each row's document page and «ابطال» on a trade still voidable. slice 4ج: the filter (App\Ledger\StatementFilter) — a plain GET form, so it works without a script and the address keeps it for the pages and the printable copy; a refused filter shows its reasons and NO table (a list that ignored the filter would be read as the filtered one); «فیلتر بی‌نتیجه» and «پاک کردن فیلتر» (flow ج۵). $rows = null when the filter was refused. $filterAction = the statement's own address without a query (so it is also «پاک کردن فیلتر»). --}} @php $forSeller = $forSeller ?? false; $clearUrl = $filterAction; @endphp @if (!$hasRows)

{{ $emptyText }}

@isset($emptyAction) @endisset
@else
@foreach (['from' => 'از تاریخ', 'to' => 'تا تاریخ'] as $field => $label)
errors[$field]) aria-invalid="true" @endisset> @isset($filter->errors[$field])

{{ $filter->errors[$field] }}

@endisset
@endforeach
@isset($filter->errors['type'])

{{ $filter->errors['type'] }}

@endisset

تاریخ شمسی به شکل سال/ماه/روز؛ هر دو اختیاری‌اند و روز «تا تاریخ» هم شمرده می‌شود.

@if ($filter->active()) پاک کردن فیلتر @endif @if ($filter->errors === []) مشاهده و چاپ @endif
@if ($filter->errors !== []) @elseif ($rows->isEmpty() && $rows->onFirstPage())

{{ $filter->typeLabel() !== null ? 'در این بازه ردیفی از نوع «' . $filter->typeLabel() . '» نیست.' : 'در این بازه ردیفی نیست.' }}

@elseif ($rows->isEmpty()) {{-- debt 80 (0.34.1): a page past the last (a typed address, an old link) — said, with the way back; the filter stays --}}

این صفحه ردیفی ندارد؛ ردیف‌ها در صفحه‌های پیش‌تر است.

@else @if ($filter->active())

{{ $filter->describe() }}@if ($withBalance) — ستون «مانده پس از ردیف» ماندهٔ کل حساب پس از همان ردیف است، نه جمع ردیف‌های این فیلتر.@endif

@endif
@include('ledger._statement-table', ['rows' => $rows, 'withBalance' => $withBalance, 'forSeller' => $forSeller, 'stack' => true])
@if ($rows->hasPages())
@if ($rows->previousPageUrl())ردیف‌های تازه‌تر@endif @if ($rows->nextPageUrl())ردیف‌های قدیمی‌تر@endif
@endif @endif @endif