@extends('layouts.dashboard') @section('content') @php /** * What a restaurant sees when it is not entitled to be trading. * * Two causes, one screen, because the reader's question is the same either way: what has happened, * and what makes it stop. The owner gets the way out; staff are told who can take it, since they * cannot pay and sending them to a billing page they have no privilege for would be a dead end. * * Reuses the .qm-card / .qm-empty anatomy the capability screen uses — the same shape of message, * so no new styling exists for this state. * * @var string $reason 'suspended' | 'unpaid' * @var bool $isOwner true when the person reading this is the one who can pay */ $reason = (string) ($reason ?? 'unpaid'); $isOwner = (bool) ($isOwner ?? false); @endphp

{{ t_raw('vendor.standing.locked_title') }}

@if ($reason === 'suspended') {{ t_raw('vendor.standing.suspended_text') }} @elseif ($isOwner) {{ t_raw('vendor.standing.unpaid_owner_text') }} @else {{ t_raw('vendor.standing.unpaid_staff_text') }} @endif

@php /* Only the owner is offered the way out: staff hold no billing privilege, so the button would take them to a 403 and read as the product being broken. */ @endphp @if ($reason !== 'suspended' && $isOwner) {{ t_raw('nav.plans') }} @endif
@endsection