@extends('layouts.app')
@section('content')
@php
$activeActivations = $license->activations->whereNull('deactivated_at');
$billing = str_contains(strtolower((string) optional($license->product)->code), 'annual') ? 'Annual' : 'Monthly';
@endphp
โ My licences
{{ $license->is_usable ? 'Active' : 'Unavailable' }}
{{ $license->edition }}
{{ $billing }}
Rsync Studio {{ $license->edition }}
Licence ending {{ $license->license_key_last4 }}
Activated Macs
{{ $activeActivations->count() }} of {{ $license->activation_limit }} activation slots in use.
{{ $activeActivations->count() }}/{{ $license->activation_limit }}
@forelse($activeActivations as $activation)
โ
{{ $activation->installation_name ?: 'Mac' }}
{{ $activation->platform ?: 'macOS' }}@if($activation->app_version) ยท Rsync Studio {{ $activation->app_version }}@endif
Last seen {{ optional($activation->last_seen_at)->diffForHumans() ?: 'not yet recorded' }}
@empty
No Macs are currently activated with this licence.
@endforelse
@endsection