{{-- 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)
فرستادن فایل دیگر دریافت فایل نمونه
@else
@if ($analysis['unread'] !== [])

این ستون‌ها خالی بودند و خوانده نشدند: {{ implode('، ', $analysis['unread']) }}

@endif @if ($writable > 0)
@csrf @if ($welcomeOn && $analysis['welcome'] > 0)
هر پیامک از سهمیهٔ پیامک ماه شما کم می‌شود. بی این تیک، مشتری‌ها ساخته می‌شوند و پیامکی نمی‌رود.
@endif
@if ($c[\App\Colleagues\BulkImport::ERROR] > 0)

{{ \App\Support\Display::number($c[\App\Colleagues\BulkImport::ERROR]) }} ردیف غلط ثبت نمی‌شود؛ آن‌ها را درست کنید و دوباره بفرستید.

@endif
@else

در این فایل ردیفی برای ثبت نیست.

@endif
@if ($c[\App\Colleagues\BulkImport::ERROR] > 0) خروجی اکسل ردیف‌های غلط @if ($onlyErrors) همهٔ ردیف‌ها @else فقط ردیف‌های غلط @endif @endif
@csrf
@foreach ($rows as $r) @endforeach
ردیف نام موبایل دسته ماندهٔ افتتاحیه نتیجه
{{ \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
@endif @endsection