{{-- resources/views/admin/system/versions/edit.blade.php --}} @extends('admin.layouts.app') @section('title', 'Edit System Version') @section('page_title', 'Edit System Version') @section('breadcrumb') Versions → {{ $version->version }} @endsection @section('content')
{{-- Status Badge --}} @if($version->status !== 'published')
Draft Version: This version hasn't been published yet. Review the details below, then click Publish when ready.
@else
Published: {{ $version->released_at->format('d M Y \a\t H:i') }} Properties have been notified.
@endif {{-- Form Card --}}
@csrf @method('PUT')
Version {{ $version->version }} {{ ucfirst($version->status) }}
{{-- Version (Read-only) --}}
Cannot be changed after creation
{{-- Title --}}
@error('title')
{{ $message }}
@enderror
{{-- Type --}}
@error('type')
{{ $message }}
@enderror
{{-- Release Notes (Markdown) --}}
Supports Markdown: ## headings, - lists, **bold**, `code`, etc. @error('release_notes')
{{ $message }}
@enderror
{{-- Flags --}}
requires_migration) ? 'checked' : '' }}> Check this if users need to run migrations before upgrading
force_notify) ? 'checked' : '' }}> Send notification to all properties when published (even if notifications disabled)
← Back
{{-- Sidebar --}}
{{-- Publish Card --}} @if($version->status !== 'published')
Ready to Publish?

Publishing will:

  • Mark version as published
  • Set release timestamp
  • @if($version->force_notify)
  • 📢 Send notification to all properties
  • @endif @if($version->requires_migration)
  • 🔄 Alert about required migrations
  • @endif
@csrf
@else
Published
Released:
{{ $version->released_at->format('d M Y H:i') }}
@if($version->force_notify)
✓ Notifications sent to all properties
@endif
@endif {{-- Meta --}}
Metadata
@php $meta = [ 'Version' => $version->version, 'Type' => ucfirst($version->type), 'Status' => ucfirst($version->status), 'Created' => $version->created_at->format('d M Y H:i'), 'Last Updated' => $version->updated_at->diffForHumans(), 'Released' => $version->released_at ? $version->released_at->format('d M Y H:i') : '—', ]; @endphp @foreach($meta as $label => $value)
{{ $label }} {{ $value }}
@endforeach
{{-- Preview --}}
Release Notes Preview
@php // Simple markdown preview (shows raw, ideally use a markdown parser) echo nl2br(htmlspecialchars(substr($version->release_notes, 0, 400))); @endphp @if(strlen($version->release_notes) > 400)

… [{{ strlen($version->release_notes) - 400 }} more characters]

@endif
@endsection