@extends('admin.layouts.app') @section('title','Software Updates') @section('content')

Software Updates

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Current Version

v{{ $currentVersion?->version ?? '1.0.0' }}

{{ $currentVersion?->changelog ?? 'Initial release.' }}

Update Status
@if($updateAvailable)
Update available: v{{ $latestVersion }}
Apply Update @else
Your software is up to date.
@endif
Upload Update Package
@csrf
@error('update_package')
{{ $message }}
@enderror
Upload a valid signed update package provided by your software vendor.
Update History
@forelse($history as $item) @empty @endforelse
VersionApplied ByStatusDate
v{{ $item->version }} {{ $item->applied_by ?? 'System' }} @if($item->status === 'success') Success @elseif($item->status === 'failed') Failed @else {{ ucfirst($item->status) }} @endif {{ $item->created_at->format('d M Y H:i') }}
No updates applied yet.
@endsection