@extends('layouts.app') @section('title', 'Detalhes da Atualização') @section('header')
Versão: {{ $update->version }}
{{ $update->name ?? 'Sem nome' }}
{{ $update->version }}
@switch($update->status) @case('available') Disponível @break @case('downloading') Baixando @break @case('downloaded') Baixado @break @case('applying') Aplicando @break @case('applied') Aplicado @break @case('failed') Falhou @break @default {{ ucfirst($update->status) }} @endswitch
{{ $update->created_at->format('d/m/Y H:i:s') }}
{{ $update->applied_at->format('d/m/Y H:i:s') }}
@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 }}
{{ $update->description }}