@if($me && $me->hasPermission('manage_products'))
+ {{ __('admin.dashboard.new_product') }}
@endif
@if($me && $me->hasPermission('manage_servers'))
+ {{ __('admin.dashboard.add_server') }}
@endif
@if($me && $me->hasPermission('create_clients'))
+ {{ __('admin.dashboard.add_client') }}
@endif
@if($me && $me->hasPermission('create_invoices'))
+ {{ __('admin.dashboard.new_invoice') }}
@endif
{{-- Second half: the screens an operator opens over and over.
Creating things was one click away and reaching the screens
that manage them was three, through a sidebar tree. --}}
@php
$jumps = array_values(array_filter([
$me?->hasPermission('manage_gateways') ? ['admin.config.gateways', __('admin.dashboard.payments')] : null,
$me?->hasPermission('manage_products') ? ['admin.products.index', __('admin.dashboard.products')] : null,
$me?->hasPermission('manage_servers') ? ['admin.config.servers', __('admin.dashboard.servers')] : null,
$me?->hasPermission('manage_servers') ? ['admin.live-servers.index', __('admin.dashboard.live_servers')] : null,
$me?->hasPermission('manage_domains') ? ['admin.config.domain-pricing', __('admin.dashboard.domains')] : null,
]));
@endphp
@if($jumps)
{{-- The rule is drawn only when there is something on both
sides of it. --}}
@foreach($jumps as [$route, $label])
{{ $label }}
@endforeach
@endif
{{-- What is actually waiting. A count that is zero is left out entirely:
an operator should be able to tell at a glance that there is nothing
to do, and a row of zeroes does not say that, it just adds reading. --}}
@if(!empty($waiting))