{{ number_format($package->licenses_count) }}
{{-- Share of every licence ever issued. A bar with nothing in it is
still information: this package has never been sold. --}}
{{ round($share) }}%
{{ $package->created_at?->format('d M Y') ?? '—' }}{{ $package->created_at?->format('H:i') }}
id }})">
View details
id }})">
Edit
id }})">
Duplicate
{{-- Straight to the licence form. It does not read a package from
the query string, so no parameter is passed rather than one
that would quietly do nothing. --}}
Assign a license
@if ($package->is_active)
id }}, false)">
Deactivate
@else
id }}, true)">
Activate
@endif
{{-- Deleting a package that has licences is refused by the server.
Saying so here is better than letting someone find out from a
red banner after the click. --}}
@if ($inUse)
Delete ({{ $package->licenses_count }} in use)
@else
@endif