@extends('platform.layout') @section('title', $tenant->name) @section('content') All shops

{{ $tenant->name }} @include('platform._state', ['tenant' => $tenant])

{{ $tenant->url() }}
@csrf
Paid you this month
{{ formatCurrency($usage['paid_month']) }}
Paid you in total
{{ formatCurrency($usage['paid_total']) }}
@if($usage['pending'])
+ {{ formatCurrency($usage['pending']) }} pending
@endif
Last used
{{ $usage['last_used']?->diffForHumans() ?? 'Not yet' }}
Staff accounts / products
{{ $usage['users'] }} / {{ number_format($usage['products']) }}

Shop details & subscription

@csrf @method('PUT') @include('platform._shop_fields', ['tenant' => $tenant])
@php $on = fn ($key) => (string) ($shop[$key] ?? '') === '1'; $sv = fn ($key) => old($key, $shop[$key] ?? ''); @endphp

Shop settings

The same settings the shop has under Settings. Change them here to help a shop without logging in.

@if($errors->any() && old('_settings'))
{{ $errors->first() }}
@endif
@csrf @method('PUT')
Business details (receipts and reports)
Features
Loss prevention

Record a payment

Paid until {{ $tenant->paid_until?->format('d M Y') ?? 'no end date' }}. @if($tenant->blockedAfter()) Blocked after {{ $tenant->blockedAfter()->format('d M Y') }} if not paid. @endif

@csrf
@foreach([1 => '+1 month', 3 => '+3 months', 6 => '+6 months', 12 => '+1 year'] as $months => $label) @endforeach
@php $smsLeft = $sms['limit'] === null ? null : max(0, $sms['limit'] - $sms['used']); $smsPct = $sms['limit'] ? min(100, round($sms['used'] / max(1, $sms['limit']) * 100)) : 0; @endphp

SMS

This month {{ number_format($sms['used']) }} {{ $sms['limit'] === null ? 'sent · unlimited (cap ' . number_format($sms['fair_use']) . ')' : 'of ' . number_format($sms['limit']) . ' free' }}
@if($sms['limit'] !== null)
@endif
Extra SMS left{{ number_format($sms['credits']) }}
@if($sms['blocked'])
{{ number_format($sms['blocked']) }} SMS not sent this month: they ran out.
@endif
@csrf
Add extra SMS
@foreach([50, 100, 200, 500] as $n) @endforeach
@if($sms['topups']->isNotEmpty())
Added
@foreach($sms['topups'] as $t)
+{{ number_format($t->quantity) }}{{ $t->amount ? ' · ' . formatCurrency($t->amount) : '' }}{{ $t->note ? ' · ' . $t->note : '' }} {{ \Carbon\Carbon::parse($t->created_at)->format('d M Y') }}
@endforeach @endif

Access

@if($tenant->isSuspended())

Suspended{{ $tenant->suspended_reason ? ': ' . $tenant->suspended_reason : '' }}. Staff cannot use the system; data is kept.

@csrf
@else
@csrf
@endif

Payment history

@forelse($payments as $payment)
{{ formatCurrency($payment->amount) }} · {{ $payment->months }} {{ $payment->months == 1 ? 'month' : 'months' }}
{{ $payment->period_from->format('d M Y') }} – {{ $payment->period_to->format('d M Y') }} {{ $payment->method ? '· ' . $payment->method : '' }}{{ $payment->reference ? ' · ' . $payment->reference : '' }}
{{ $payment->paid_on->format('d M Y') }}
{{ $payment->recorded_by }}
@empty

No payments recorded yet.

@endforelse

Owner accounts

@forelse($owners as $owner) @php($bag = $errors->getBag("password_{$owner->id}"))
{{ $owner->name }}
{{ $owner->email }}
any() ? 'open' : '' }}> Change password
@csrf @method('PUT') @if($bag->has('password'))
{{ $bag->first('password') }}
@endif
@empty

No owner account.

@endforelse
@endsection