@php
$fmt = app(\App\Services\Formatter::class);
$money = fn ($value) => $fmt->money($value);
@endphp
{{-- ------------------------------------------------------------- tiles --}}
{{-- ------------------------------------------------------------- queue --}}
@if ($queue->isNotEmpty())
Open queue
| Shop |
Reference |
Method |
Amount |
Waiting |
@foreach ($queue as $payment)
|
{{ $payment->tenant?->business_name ?? '—' }}
{{ $payment->subscription?->plan?->name }}
|
{{ $payment->reference }} |
{{ $payment->gateway->label() }} |
{{ $fmt->money($payment->amount) }} |
{{ $payment->created_at->diffForHumans() }} |
@endforeach
@endif
{{-- ------------------------------------------------------------ charts --}}
{{-- The same numbers, readable. A chart alone is not an answer. --}}
Show as table
| Month | Verified |
@foreach ($revenue as $row)
| {{ $row['label'] }} |
{{ $fmt->money($row['value']) }} |
@endforeach
{{-- ------------------------------------------------ renewals + products --}}
@if ($expiring->isEmpty())
@else
| Shop | Plan | Ends | Days |
@foreach ($expiring as $subscription)
|
{{ $subscription->tenant?->business_name ?? '—' }}
|
{{ $subscription->plan?->name }}
@if ($subscription->is_trial)
Trial
@endif
|
{{ $fmt->date($subscription->ends_at) }} |
$subscription->daysRemaining() <= 3])>
{{ $subscription->daysRemaining() }}
|
@endforeach
@endif
@if ($products->isEmpty())
@else
| Product | Shops | Active | |
@foreach ($products as $product)
|
{{ $product->name }}
{{ $product->tagline }}
|
{{ number_format($product->tenants_count) }} |
{{ number_format($product->active_tenants_count) }} |
@if (! $product->is_active)
Inactive
@endif
|
@endforeach
@endif
{{-- ---------------------------------------------------------- activity --}}
View all
@if ($activity->isEmpty())
@else
@foreach ($activity as $entry)
-
{{ $entry->description }}
{{ $entry->event }} · {{ $entry->created_at->diffForHumans() }}
@endforeach
@endif