{{-- the seller's subscription bar on EVERY panel page (slice 12, پ۱۲-۱ and پ۱۲-۲, flow ک۲ «نوار اشتراک: رو به پایان · در مهلت · بسته و فقط‌خواندنی»). three states, and each one names the way on (+NO-DEAD-END): our support phone to renew, and — once it is closed — «خروجی داده», which is what still works. absent while the subscription is comfortably alive, and absent for a seller with no end date at all. the figures come from App\Subscriptions\Subscription, so this box and the console's row can never say different days. --}} @if ($subscription !== null && $subscription->warns()) @php $support = (string) config('mz.support_phone'); // slice 15ب (debt 79): a sentence, so the number carries its own left-to-right isolation (Display::phonePlain) $call = 'برای تمدید با پشتیبانی مظنه تماس بگیرید' . ($support !== '' ? ' (' . \App\Support\Display::phonePlain($support) . ')' : '') . '.'; $last = \App\Support\Display::date($subscription->lastDay()); @endphp @if ($subscription->closed()) @elseif ($subscription->state() === \App\Subscriptions\Subscription::GRACE) @else

@if ($subscription->daysLeft() === 1) امروز، {{ $last }}، آخرین روز اشتراک شماست؛ از فردا هفت روز مهلت دارید. @else اشتراک شما {{ \App\Support\Display::number(max(0, (int) $subscription->daysLeft())) }} روز دیگر تمام می‌شود؛ آخرین روزش {{ $last }} است. @endif {{ $call }}

@endif @endif