@extends('platform.layout') @section('title', 'Shops') @section('content')

Shops

Every pharmacy using the system, its subscription and what it has paid you.

New shop
@foreach(['all' => 'All', 'attention' => 'Due soon / overdue', 'suspended' => 'Suspended'] as $key => $label) {{ $label }} ({{ $counts[$key] }}) @endforeach
@forelse($tenants as $tenant) @php($u = $usage[$tenant->id]) @empty @endforelse
Shop Plan Paid until Paid you this month Paid you in total Pending Staff Last used
{{ $tenant->name }}
/{{ $tenant->slug }}{{ $tenant->contact_phone ? ' ยท ' . $tenant->contact_phone : '' }}
{{ $tenant->planName() }}@if($tenant->monthlyPrice())
{{ number_format($tenant->monthlyPrice()) }}/month
@endif
{{ $tenant->paid_until?->format('d M Y') ?? 'โ€”' }}
@include('platform._state', ['tenant' => $tenant])
{{ $u['paid_month'] ? formatCurrency($u['paid_month']) : 'โ€“' }} {{ formatCurrency($u['paid_total']) }} @if($u['pending']) {{ formatCurrency($u['pending']) }} @else โ€“ @endif {{ $u['users'] }} {{ $u['last_used'] ? $u['last_used']->diffForHumans() : 'not yet' }} Manage
No shops here.
@endsection