@extends('theme::layouts.app', ['title' => $download->product->name . ' - ' . __('account.Version History')]) @section('content')
{{ $download->product->name }}

{{ $download->product->name }}

calendar_today {{ __('account.Purchased') }}: {{ $download->order->created_at->format('M d, Y') }}
@if($download->licenseKey)
verified {{ __('account.License') }}: {{ __('account.Standard License') }}
@endif
@if($download->status === 'expired')
warning

{{ __('account.Support Expired') }}

@if($download->supportExpiryDate)

{{ __('account.Ended on') }} {{ $download->supportExpiryDate->format('M d, Y') }}.

@endif {{ __('account.Renew Support') }} →
@elseif($download->isSubscription)
autorenew

{{ __('account.Subscription Active') }}

{{ __('account.Includes all updates') }}

@else
check_circle

{{ __('account.Support Active') }}

@if($download->supportExpiryDate)

{{ __('account.Valid until') }} {{ $download->supportExpiryDate->format('M d, Y') }}.

@else

{{ __('account.Lifetime Access') }}

@endif
@endif

history {{ __('account.Release History') }}

@foreach($download->product->files->sortByDesc('released_at') as $file) @php $isAccessible = $download->isAccessible($file); @endphp @endforeach
{{ __('account.Version') }} {{ __('account.Release Date') }} {{ __('account.Status & Permissions') }} {{ __('account.Action') }}
{{ $file->version }} @if($loop->first) {{ __('account.LATEST') }} @endif
{{ $file->released_at ? $file->released_at->format('M d, Y') : 'N/A' }} @if($isAccessible)
check_circle {{ __('account.Available') }}
@else
lock {{ __('account.Locked') }}

{{ __('account.Released after your support expired.') }}

@endif
@if($isAccessible) download {{ __('account.Download') }} @else @endif
@php $hasPolicy = $download->hasPolicy; $renewPrice = $download->getRenewalPrice(); $durationLabel = $download->getSupportDurationLabel(); $latestVersion = $download->latestVersion?->version ?? 'latest'; @endphp @if($download->status === 'expired' && $hasPolicy)

{{ __('account.Want the latest :version features?', ['version' => $latestVersion]) }}

@if($renewPrice) {!! __('account.Renew your support today for just :price and get instant access to the latest version, along with :duration of security updates and technical assistance.', ['price' => $renewPrice, 'duration' => $durationLabel]) !!} @else {{ __('account.Renew your support today and get instant access to the latest version, along with :duration of security updates and technical assistance.', ['duration' => $durationLabel]) }} @endif

@endif

{{ __('account.How does support work?') }}

{{ __('account.:product includes :duration of free updates and support. You own the versions released during that window forever. To access versions released after your window expires, a support renewal is required.', ['product' => $download->product->name, 'duration' => $durationLabel]) }}

{{ __('account.Need help with an old version?') }}

{{ __('account.Even if your support has expired, you can still access our online documentation for any version of the product you currently own.') }}

@endsection