@if(session('success'))
@endif
@unless($hasSodium)
{{ __('update.sodium_missing') }}
@endunless
{{-- Version + Trust info --}}
{{ __('update.current_version') }}
{{ $currentVersion }}
@if($state)
- {{ __('update.trust_version') }}
- {{ $state['trust_version'] ?: __('update.trust_not_loaded') }}
- {{ __('update.trust_expires') }}
-
@if($state['trust_expires_at'])
{{ \Carbon\Carbon::parse($state['trust_expires_at'])->format('d.m.Y') }}
@else
{{ __('update.trust_not_loaded') }}
@endif
- {{ __('update.trust_keys') }}
- {{ count($state['valid_keys'] ?? []) }}
@endif
{{-- Auto-check toggle --}}
{{-- Check now --}}
@if($hasSodium)
{{ __('update.check_now') }}
{{ __('update.changelog') }}
- {{ __('update.released_at') }}
- {{ __('update.download_size') }}
{{-- Backup + Install (shown when update found) --}}
{{ __('update.backup_title') }}
{{ __('update.backup_warning') }}
{{ __('update.backup_db_info', ['host' => config('database.connections.mysql.host', 'localhost'), 'database' => config('database.connections.mysql.database', '')]) }}
{{ __('update.backup_instructions') }}
@endif
{{-- Preflight --}}
@if($preflight)
{{ __('update.preflight_title') }}
@php $allOk = !in_array(false, $preflight, true); @endphp
@if($allOk)
{{ __('update.preflight_ok') }}
@else
{{ __('update.preflight_fail') }}
@endif
@foreach($preflight as $check => $ok)
-
@if($ok)
@else
@endif
{{ __('update.preflight_' . $check) }}
@endforeach
@endif
{{-- Last check info --}}
@if($state && $state['last_check'])
{{ __('update.dashboard_last_checked') }}
{{ \Carbon\Carbon::parse($state['last_check']['checked_at'])->diffForHumans() }}
@if($state['last_check']['has_update'])
{{ __('update.check_result_update', ['version' => $state['last_check']['latest_version']]) }}
@else
{{ __('update.check_result_up_to_date', ['app_name' => config('app.name')]) }}
@endif
@endif