{{-- «مشتریان» (flow م۸, slice 1): this seller's own customers only. the mobile is shown in full (+NO-PHONE-MASK). slice 4الف: each customer's balances (signed, from the customer's view) and a link to the customer page. slice 5الف: each customer's category (who gets which price). --}} @extends('layouts.mz') @section('title', 'مشتریان') @section('credit', '1') @section('nav') @include('panel._nav') @endsection @section('content')

مشتریان

مشتری تازه {{-- slice 13: many customers (and their opening balances) from one Excel file --}} ورود گروهی از اکسل
@if (session('mz.saved'))

{{ session('mz.saved') }}

@endif @if ($customers->isEmpty())

هنوز مشتری‌ای ثبت نکرده‌اید. هر مشتری فقط با شماره‌ای که شما ثبت می‌کنید وارد اپ مظنه می‌شود.

ثبت نخستین مشتری ورود گروهی از اکسل
@else
@if ($showsSilver) @endif @if ($showsCoins) @endif @foreach ($customers as $customer) @if ($showsSilver) @endif @if ($showsCoins) {{-- slice 5ه۱: each coin with a balance, by name; none = «—» --}} @endif @endforeach
نام موبایل دسته ماندهٔ ریال ماندهٔ طلای ۷۵۰ماندهٔ نقرهٔ ۹۹۹ماندهٔ سکهوضعیت
{{ $customer->name }} {{ $customer->group_id !== null ? ($groups[$customer->group_id] ?? '—') : 'بدون دسته' }} {{ \App\Support\Display::money($balances[$customer->id][\App\Ledger\Ledger::RIAL], $moneyUnit) }} {{ \App\Support\Display::weight($balances[$customer->id][\App\Ledger\Ledger::GOLD], $weightUnit) }}{{ \App\Support\Display::weight($balances[$customer->id][\App\Ledger\Ledger::SILVER], $weightUnit) }} @forelse ($coins[$customer->id] as $coinLine) {{ $coinLine }}@if (!$loop->last)
@endif @empty — @endforelse
@if ($customer->status === \App\Models\Customer::STATUS_ACTIVE) فعال @else غیرفعال @endif
@endif @endsection