@extends('layouts.app') @section('content')
Account

My licences

Manage subscriptions, licence keys and activated Macs.

Buy another licence
@php $activeLicences = $licenses->filter(fn ($license) => $license->is_usable); $historyLicences = $licenses->reject(fn ($license) => $license->is_usable); @endphp @if($activeLicences->isEmpty())

No active licences

No active Rsync Studio licence is associated with {{ auth()->user()->email }}.

Choose a plan
@else
@foreach($activeLicences as $license) @php $activeCount = $license->activations->whereNull('deactivated_at')->count(); $isDuplicatePersonal = $hasProfessional && $license->edition === 'Personal'; $billing = str_contains(strtolower((string) optional($license->product)->code), 'annual') ? 'Annual' : 'Monthly'; @endphp
Active {{ $license->edition }} {{ $billing }}

Rsync Studio {{ $license->edition }}

Licence ending {{ $license->license_key_last4 }}

Manage licence
Macs activated {{ $activeCount }} of {{ $license->activation_limit }}
Subscription {{ ucfirst($license->subscription_status ?: 'active') }}
{{ $license->subscription_status === 'trialing' ? 'Trial ends' : 'Renews' }} {{ optional($license->current_period_ends_at)->format('j M Y') ?: '—' }}
@if($isDuplicatePersonal)
You already have an active Professional subscription.

This Personal plan is a separate Paddle subscription and could be billed separately. Cancel it if it was only created while upgrading.

@csrf @method('DELETE')
@elseif($license->edition === 'Personal')
Need more Macs? Upgrade this subscription to Professional for up to 3 Macs.
@csrf
@endif
@endforeach
@endif @if($historyLicences->isNotEmpty())
Licence history {{ $historyLicences->count() }}
@foreach($historyLicences as $license)
Rsync Studio {{ $license->edition }} Licence ending {{ $license->license_key_last4 }}
{{ ucfirst($license->subscription_status ?: ($license->revoked_at ? 'revoked' : 'unavailable')) }}
Details
@endforeach
@endif @endsection