{{-- «مشتریان» (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')
{{ session('mz.saved') }}
@endif @if ($customers->isEmpty())هنوز مشتریای ثبت نکردهاید. هر مشتری فقط با شمارهای که شما ثبت میکنید وارد اپ مظنه میشود.
| نام | موبایل | دسته | ماندهٔ ریال | ماندهٔ طلای ۷۵۰ | @if ($showsSilver)ماندهٔ نقرهٔ ۹۹۹ | @endif @if ($showsCoins)ماندهٔ سکه | @endifوضعیت |
|---|---|---|---|---|---|---|---|
| {{ $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) }} | @if ($showsSilver){{ \App\Support\Display::weight($balances[$customer->id][\App\Ledger\Ledger::SILVER], $weightUnit) }} | @endif @if ($showsCoins) {{-- slice 5ه۱: each coin with a balance, by name; none = «—» --}}
@forelse ($coins[$customer->id] as $coinLine)
{{ $coinLine }}@if (!$loop->last) @endif @empty — @endforelse |
@endif
@if ($customer->status === \App\Models\Customer::STATUS_ACTIVE) فعال @else غیرفعال @endif |