{{-- Everything the header actions open. Modals rather than panels stacked into the page: each of these is a decision the operator came here to make, and pushing the subscriber's details half a screen down while they make it loses the context they were reading. --}} @if ($showPackage && $this->packageDetail) @php $pkg = $this->packageDetail['package']; @endphp
{{ __('Price') }}
{{ $pkg->price > 0 ? money($pkg->price, 0) : __('Free') }}
{{ __('Speed') }}
{{-- The rate limit is what the router enforces; the speed label is only what the customer is told. --}}
{{ $pkg->mikrotik_rate_limit ?: ($pkg->speed ?: '—') }}
{{ __('Plan label') }}
{{ $pkg->plan_label ?: '—' }}
{{ __('Router') }}
{{ $pkg->router_name ?: '—' }}
{{ __('Times bought') }}
{{ $this->packageDetail['times_bought'] }}
{{ __('Spent on this plan') }}
{{ money($this->packageDetail['spent_on_it'], 0) }}
{{ __('First bought') }}
{{ $this->packageDetail['first_bought']?->format('M j, Y') ?: '—' }}
{{ __('Last bought') }}
{{ $this->packageDetail['last_bought']?->format('M j, Y') ?: '—' }}
@if ($pkg->description)
{{ __('Description') }}

{{ $pkg->description }}

@endif
{{ __('Edit plans') }}
@endif @if ($showEdit)
@endif @if ($showSms)
{{ __(':n characters — :p SMS', [ 'n' => strlen($smsBody), 'p' => max(1, (int) ceil(max(1, strlen($smsBody)) / 160)), ]) }} {{ strlen($smsBody) }} / 480
@endif @if ($showExpiry)
{{ __('Currently :when.', ['when' => $current?->expires_at?->format('d M Y, H:i') ?: __('not set')]) }}
@endif @if ($showCompensate)
@endif