{{-- the preview of «ورود گروهی» (slice 13, پ۱۳-۱): every row decided by the server and NOTHING written yet. the wrong rows say why; «ثبت» posts the digest of exactly this page, and the server refuses it if the file now decides otherwise. every number is shown with its word (بدهکار · بستانکار), never by sign or colour alone (+FEE-SIGN). --}} @extends('layouts.mz') @section('title', 'پیشنمایش ورود گروهی') @section('credit', '1') @section('nav') @include('panel._nav') @endsection @php $c = $analysis['counts']; $writable = $c[\App\Colleagues\BulkImport::NEW] + $c[\App\Colleagues\BulkImport::UPDATE]; $statusWord = [ \App\Colleagues\BulkImport::NEW => ['مشتری تازه', 'mz-pill--ok'], \App\Colleagues\BulkImport::UPDATE => ['بهروز میشود', 'mz-pill--warn'], \App\Colleagues\BulkImport::SAME => ['بی تغییر', ''], \App\Colleagues\BulkImport::ERROR => ['غلط، ثبت نمیشود', 'mz-pill--no'], ]; $amount = function (array $o) use ($moneyUnit, $weightUnit): string { $abs = abs($o['delta']); $figure = $o['asset'] === \App\Ledger\Ledger::RIAL ? \App\Support\Display::money($abs, $moneyUnit) : \App\Ledger\Ledger::quantity($o['asset'], $abs, $weightUnit); return \App\Colleagues\BulkImport::assetWord($o['asset']) . ': ' . $figure . ' ' . ($o['delta'] < 0 ? 'بدهکار' : 'بستانکار'); }; @endphp @section('content')
فایل: {{ $fileName }} — هنوز هیچ چیز ثبت نشده است.
@if ($analysis['error'] !== null){{ $analysis['error'] }}
این ستونها خالی بودند و خوانده نشدند: {{ implode('، ', $analysis['unread']) }}
@endif @if ($writable > 0) @elseدر این فایل ردیفی برای ثبت نیست.
@endif| ردیف | نام | موبایل | دسته | ماندهٔ افتتاحیه | نتیجه |
|---|---|---|---|---|---|
| {{ \App\Support\Display::number($r['line']) }} | @if ($r['customer_id']) {{ $r['existing_name'] }} @else {{ $r['name'] !== '' ? $r['name'] : '—' }} @endif | @if ($r['group_change']) {{ $r['group_change']['from'] }} ⇐ {{ $r['group_change']['to'] }} @else {{ $r['group_name'] ?? '—' }} @endif |
@forelse ($r['openings'] as $o)
{{ $amount($o) }}@if ($o['state'] === 'have') (پیشتر ثبت شده)@endif
@if (!$loop->last) @endif @empty — @endforelse |
{{ $statusWord[$r['status']][0] }}
@foreach ($r['errors'] as $e)
{{ $e }} @endforeach @foreach ($r['notes'] as $n){{ $n }} @endforeach |