@extends('layouts.app') @section('content')
SYSTEM ADMINISTRATION

System Updates

Upload a signed Prime Next update package, review it, then install it with an automatic file and database backup.

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
Current Version
v{{ $currentVersion }}
Update Access
Super Admin only
Staff accounts cannot install application updates.

Upload Update Package

Maximum ZIP size: {{ $maxUploadMb }} MB. The package must contain a manifest.json and only approved application paths.

@csrf

Update History

@forelse($updates as $update) @empty @endforelse
VersionTypeStatusInstalled ByDate
v{{ $update->version }} {{ ucfirst($update->release_type) }} {{ ucfirst($update->status) }} {{ $update->user?->email ?? '—' }} {{ $update->installed_at?->format('d M Y H:i') ?? $update->created_at->format('d M Y H:i') }}
No update packages have been installed yet. The initial baseline is v{{ $currentVersion }}.
@if($updates->hasPages()) @php $historyFrom = $updates->firstItem() ?? 0; $historyTo = $updates->lastItem() ?? 0; $historyTotal = $updates->total(); $historyCurrent = $updates->currentPage(); $historyLast = $updates->lastPage(); $historyStart = max(1, $historyCurrent - 2); $historyEnd = min($historyLast, $historyCurrent + 2); if ($historyEnd - $historyStart < 4) { $historyStart = max(1, $historyEnd - 4); $historyEnd = min($historyLast, $historyStart + 4); } @endphp @else
Showing {{ $updates->count() }} update{{ $updates->count() === 1 ? '' : 's' }}
@endif
@endsection