@extends('layouts.app') @section('title', 'Sistema de Atualizações') @section('header')

Sistema de Atualizações

Versão atual: {{ $systemInfo['current_version'] }}

@endsection @section('content')
Versão Atual
{{ $systemInfo['current_version'] }}
{{ config('app.name') }}
Atualizações
{{ count($availableUpdates) }}
{{ $hasUpdates ? 'Disponíveis' : 'Sistema atualizado' }}
Espaço em Disco
{{ number_format($systemInfo['disk_space']['percentage_used'], 1) }}%
{{ $systemInfo['disk_space']['free_formatted'] }} livres
Ambiente
{{ ucfirst($systemInfo['environment']) }}
PHP {{ $systemInfo['php_version'] }}
@if($hasUpdates)
Atualizações Disponíveis ({{ count($availableUpdates) }})
@foreach($availableUpdates as $update) @endforeach
Versão Nome Descrição Data Tamanho Ações
{{ $update['version'] }} @if(version_compare($update['version'], $systemInfo['current_version']) > 0) Nova @endif {{ $update['name'] ?? 'Sem nome' }} {{ Str::limit($update['description'] ?? 'Sem descrição', 100) }} {{ \Carbon\Carbon::parse($update['created_at'])->format('d/m/Y H:i') }} @if(isset($update['file_size']) && $update['file_size']) @php $size = $update['file_size']; $units = ['B', 'KB', 'MB', 'GB', 'TB']; for ($i = 0; $size > 1024 && $i < count($units) - 1; $i++) { $size /= 1024; } $formattedSize = round($size, 2) . ' ' . $units[$i]; @endphp {{ $formattedSize }} @else N/A @endif
@else

Sistema Atualizado

Não há atualizações disponíveis no momento.

@endif
Informações do Sistema
Sistema Operacional: {{ PHP_OS }}
PHP: {{ $systemInfo['php_version'] }}
Laravel: {{ $systemInfo['laravel_version'] }}
Ambiente: {{ ucfirst($systemInfo['environment']) }}
Debug: {{ $systemInfo['debug_mode'] ? 'Ativo' : 'Inativo' }}
Banco de Dados: {{ strtoupper($systemInfo['database_driver']) }}
Memória: {{ $systemInfo['memory_limit'] }}
Tempo Execução: {{ $systemInfo['max_execution_time'] }}s
Backups Recentes

Carregando backups...

@endsection @push('styles') @endpush @push('scripts') @endpush