@extends('layouts.app') @section('title', 'System Update') @section('content')

System Update

Runs pending database migrations + any legacy versioned steps. No SSH needed.

@include('partials.alerts')

Installed Version

{{ $info['current'] }}

Pending Migrations

{{ count($info['pending_migrations']) }}

@php $confirmMsg = $info['count'] ? "Run migrations + apply {$info['count']} pending update(s)?" : 'Run migrations?'; @endphp
@csrf
@unless ($info['updatable'])
System is up to date.
@endunless
Pending Changes
@forelse ($info['logs'] as $log)
{{ $log }}
@empty

No pending changes.

@endforelse
Update History
@forelse ($history as $run) @empty @endforelse
WhenFromToStatusMessage
{{ \Illuminate\Support\Carbon::parse($run->created_at)->format('d M Y H:i') }} {{ $run->from_version }} {{ $run->to_version }} @php $cls = ['success' => 'success', 'failed' => 'danger', 'noop' => 'secondary'][$run->status] ?? 'secondary'; @endphp {{ ucfirst($run->status) }} {{ $run->message }}
No updates run yet.
@endsection