@php use Carbon\Carbon; @endphp @extends('layouts.admin.app', ['page' => $menuAdmin['system_updates']['active'] ?? ""]) @section('title', __('labels.system_updates')) @section('header_data') @php $page_title = __('labels.system_updates'); $page_pretitle = __('labels.list'); @endphp @endsection @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('admin.dashboard')], ['title' => __('labels.system_updates'), 'url' => null], ]; @endphp @section('admin-content')
@if (session('update_log'))
{{ __('labels.latest_update_log') }} @if(session('update_version')) (v{{ session('update_version') }}) @endif @if(session('update_id')) #{{ session('update_id') }} @endif
{{ session('update_log') }}
@endif @php $cronLogPath = storage_path('logs/cron-log.txt'); $cronLogExists = file_exists($cronLogPath); $cronLogMTime = $cronLogExists ? @filemtime($cronLogPath) : null; $cronIsFresh = $cronLogMTime && (time() - $cronLogMTime) < 600; $detectedPhpBinary = function_exists('shell_exec') ? shell_exec('command -v php') : null; $phpBinary = trim($detectedPhpBinary ?? '') ? trim($detectedPhpBinary) : '/usr/local/bin/php'; @endphp

{{ __('labels.system_updates') }}

@if($cronLogExists) {{ $cronIsFresh ? __('labels.queue_worker_running') : __('labels.queue_worker_stale') }} @else {{ __('labels.queue_worker_not_set_up') }} @endif
{{ __('labels.current_version') }}: v{{ $currentVersion ?? config('app.version') }}
@if(! $canUpdate)
{{ __('labels.no_update_permission') }}
@elseif(! $cronLogExists)
{{ __('labels.upload_unlocks_after_queue') }}
@else @if(! $cronIsFresh) @endif
    @csrf
    {{ __('labels.update_zip_help') }}
    @include('admin.system-updates.partials.confirm-update-modal')
    {{ __('labels.live_update_log') }}
    {{ __('labels.starting') }}
    0%
    {{ __('labels.update_stuck_warning') }}
    {{ __('Open private update log') }}
    
                            
    @endif

    {{ __('labels.update_history') }}

    @endsection @push('scripts') @endpush