@php $updateState = $widget['data']['updateState']; $lastCheck = $updateState['last_check'] ?? null; $hasUpdate = $lastCheck['has_update'] ?? false; $borderColor = $hasUpdate ? 'border-yellow-500' : ($lastCheck ? 'border-green-500' : 'border-gray-300'); $bgColor = $hasUpdate ? 'bg-yellow-50' : ($lastCheck ? 'bg-green-50' : 'bg-gray-50'); @endphp

{{ __('update.dashboard_title') }}

{{ __('update.dashboard_version') }}
{{ config('app.version', '1.0.0') }}
@if ($hasUpdate) {{ __('update.dashboard_update_available') }}
{{ $lastCheck['latest_version'] ?? '' }}
@elseif ($lastCheck) {{ __('update.dashboard_up_to_date') }} @else {{ __('update.dashboard_never_checked') }} @endif
@if ($lastCheck && ($lastCheck['checked_at'] ?? null))
{{ __('update.dashboard_last_checked') }}: {{ \Carbon\Carbon::parse($lastCheck['checked_at'])->diffForHumans() }}
@endif