{{-- «تاریخچهٔ عملیات» (PRD §3 پ۷, پ۷-۲; flow م۱۱; slice 7): every act on this seller's desk, newest first, 50 to a page, from App\History\ActivityLog. the filter (App\History\ActivityFilter) is a plain GET form — it works without a script and the address keeps it for the pages. a refused filter shows its reasons and NO list; an empty result says so with «پاک کردن فیلتر»; a subject filter (from a product's or a customer's card) is carried in a hidden field and named. --}} @extends('layouts.mz') @section('title', 'تاریخچهٔ عملیات') @section('credit', '1') @section('nav') @include('panel._nav') @endsection @section('content')

تاریخچهٔ عملیات

هر کار روی این میز با عاملش: «مدیر» (حساب مشترک پنل)، «همکار» (مشتری در اپ)، «سامانه» (تأیید خودکار و پایان مهلت) و «پلتفرم» (مظنه). این تاریخچه فقط افزوده می‌شود؛ هیچ ردیفی ویرایش یا پاک نمی‌شود.

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

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

@endisset
@endforeach @foreach (['kind' => ['نوع کار', \App\History\ActivityFilter::KINDS, 'همهٔ کارها'], 'actor' => ['عامل', \App\History\ActivityFilter::ACTORS, 'همهٔ عامل‌ها']] as $field => [$label, $options, $all])
@isset($filter->errors[$field])

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

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

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

@endisset

تاریخ شمسی به شکل سال/ماه/روز؛ هر دو اختیاری‌اند و روز «تا تاریخ» هم شمرده می‌شود.@if ($filter->subjectLabel !== null) فقط ردیف‌های {{ $filter->subjectLabel }}.@endif

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

{{ $filter->active() ? 'در این بازه و با این فیلتر کاری ثبت نشده است.' : 'هنوز کاری ثبت نشده است.' }}

@if ($filter->active())
پاک کردن فیلتر
@endif
@elseif ($rows === [])

این صفحه ردیفی ندارد؛ تاریخچه کوتاه‌تر از این است.

صفحهٔ اول
@else @if ($filter->active())

@endif @include('panel._history-rows', ['rows' => $rows]) @if ($page->hasPages())
@if ($page->previousPageUrl())کارهای تازه‌تر@endif @if ($page->nextPageUrl())کارهای قدیمی‌تر@endif
@endif @endif @endsection