@extends('backEnd.master', ['title' => __('service::install.update')]) @section('mainContent')

@lang('setting.Update')

@php $currentVersion = $product['current_version'] ?? null; $nextVersion = $product['next_release_version'] ?? null; $nextDate = $product['next_release_date'] ?? null; $nextSize = $product['next_release_size'] ?? 0; $nextBuild = $product['next_release_build'] ?? null; $changeLog = $product['next_release_change_log'] ?? null; $productName = $product['name'] ?? null; @endphp @if($currentVersion === $nextVersion && $productName) {{-- Already up to date --}}
Current Installed Version{{ $currentVersion }}
Latest version{{ $nextVersion }}
Date of Release{{ $nextDate }}
{{ __('setting.PHP Version') }}{{ phpversion() }}
{{ __('setting.Curl Enable') }} {{ in_array('curl', get_loaded_extensions()) ? 'enable' : 'disable' }}
{{ __('setting.Purchase code') }}{{ __('Verified') }}
{{ __('setting.Install Domain') }}{{ config('configs')->where('key', 'system_domain')->first()->value }}
{{ __('setting.System Activated Date') }}{{ config('configs')->where('key', 'system_activated_date')->first()->value }}
@else {{-- Update available --}}
@if($productName)
@if($changeLog) @endif
Current Installed Version{{ $currentVersion }}
Version Available for Upgrade{{ $nextVersion }}
Date of Release{{ $nextDate }}
Update Size{{ bytesToSize($nextSize) }}
{{ __('setting.PHP Version') }}{{ phpversion() }}
{{ __('setting.Curl Enable') }} {{ in_array('curl', get_loaded_extensions()) ? 'enable' : 'disable' }}
{{ __('setting.Purchase code') }}{{ __('Verified') }}
{{ __('setting.Install Domain') }}{{ config('configs')->where('key', 'system_domain')->first()->value }}
{{ __('setting.System Activated Date') }}{{ config('configs')->where('key', 'system_activated_date')->first()->value }}
{!! $changeLog !!}
@endif
@endif
{{-- Update Modal --}} @stop @push('scripts') @endpush