{{-- «سفارش‌ها» = the archive (slice 10; PRD پ۶, پ۱۰-۱; flow م۱۰): one GET filter (it works without a script) over every order, newest first, 50 to a page; no field = today. a refused field is said under itself and NO list is drawn (+SILENT-DISCARD). «خروجی اکسل» downloads exactly these rows (the same query string); its script only changes the button's words while the file is made. «خرید» / «فروش» are the CUSTOMER's words; the mobile is in full. --}} @extends('layouts.mz') @section('title', 'سفارش‌ها') @section('credit', '1') @section('nav') @include('panel._nav') @endsection @section('content')

سفارش‌ها

همهٔ سفارش‌ها، تازه‌ترین بالا. بی فیلتر، سفارش‌های امروز (از نیمه‌شب تهران) دیده می‌شوند. «خرید» و «فروش» از دید مشتری است. سفارش‌های در انتظار را در صف زنده تأیید یا رد کنید؛ تراز هر روز در تراز روزانه است.

@if (session('mz.warning')) @endif
@foreach (['from' => 'از تاریخ', 'to' => 'تا تاریخ'] as $field => $label)
errors[$field]) aria-invalid="true" @endisset> @isset($filter->errors[$field])

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

@endisset
@endforeach @foreach ($selects as $field => [$label, $all, $options])
@isset($filter->errors[$field])

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

@endisset
@endforeach

تاریخ شمسی به شکل سال/ماه/روز؛ هر دو اختیاری‌اند و روز «تا تاریخ» هم شمرده می‌شود. «تأیید خودکار» یعنی سامانه همان لحظهٔ ثبت تأیید کرد.

امروز همهٔ سفارش‌ها @if ($filter->errors === []) خروجی اکسل @endif
@if ($filter->errors !== []) @elseif ($rows === [] && $page->onFirstPage())

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

@if ($filter->asked())پاک کردن فیلتر@endif کالاها و قیمت‌ها
@elseif ($rows === [])

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

صفحهٔ اول
@else

@foreach ($rows as $row) @endforeach
شماره زمان ثبت مشتری نوع کالا وزن یا تعداد عیار قیمت قفل‌شده مبلغ دقیق وضعیت حسابداری
{{ $row['number'] }} {{ $row['when'] }} @if ($row['customer'] !== null) {{ $row['customer'] }} @else — @endif @if ($row['note'] !== null) توضیح: {{ $row['note'] }} @endif {{ $row['side'] }} {{ $row['product'] }} {{ $row['quantity'] }} {{ $row['purity'] }} {{ $row['price'] }} {{ $row['amount'] }} {{ $row['status'] }} @if ($row['reason'] !== null)دلیل: {{ $row['reason'] }}@endif @if ($row['void_url'] !== null)ابطال@endif {{ $row['accounting'] }}
@if ($page->hasPages())
@if ($page->previousPageUrl())سفارش‌های تازه‌تر@endif @if ($page->nextPageUrl())سفارش‌های قدیمی‌تر@endif
@endif @endif @endsection