Files
ABSDEV/Modules/Licensing/Resources/views/downloads/index.blade.php
T
2026-10-12 15:59:55 +01:00

14 lines
3.0 KiB
PHP

@extends('sonardesk.layout')
@section('title','Downloads & Release Notes')
@section('content')
<section class="sd-hero" style="padding-bottom:24px"><span class="sd-kicker">SonarDesk / Distribution</span><h1>Downloads <span style="color:var(--gold)">&amp; releases.</span></h1><p class="sd-lead">Installers and published release history, collected in one place. Review details before downloading.</p></section>
@if($latest)
<section class="sd-section"><div class="sd-section-head"><div><span class="sd-kicker">Latest stable release</span><h2>SonarDesk {{ $latest->version }}</h2><p>{{ \Illuminate\Support\Str::limit(trim(strip_tags($latest->release_notes ?? 'Native SonarQube monitoring for macOS.')), 210) }}</p></div><span class="sd-badge">Stable</span></div><div class="sd-actions"><a class="sd-button" href="{{ route('sonardesk.releases.download',$latest) }}">Download SonarDesk →</a><a class="sd-button secondary" href="{{ route('sonardesk.releases.show',$latest) }}">Release notes &amp; requirements</a></div></section>
@endif
<section class="sd-section"><div class="sd-section-head"><div><span class="sd-kicker">Product library</span><h2>Available downloads</h2><p>Published products grouped together, with concise descriptions and direct access to details.</p></div></div>
@if($products->isNotEmpty())<div class="sd-list">@foreach($products as $product)<article class="sd-row"><div><span class="sd-badge">{{ $product->platform ?: 'Software' }}</span><h3 style="margin-top:10px">{{ $product->name }} <span class="sd-meta">{{ $product->version }}</span></h3><p>{{ \Illuminate\Support\Str::limit(trim(strip_tags($product->description ?? '')), 160) }}</p></div><div class="sd-row-actions"><a class="sd-button secondary" href="{{ route('sonardesk.products.show',$product) }}">Details</a><a class="sd-button" href="{{ route('sonardesk.products.download',$product) }}">Download ↓</a></div></article>@endforeach</div>
@else<div class="sd-empty">No additional products have been published yet.</div>@endif
</section>
<section class="sd-section"><div class="sd-section-head"><div><span class="sd-kicker">Version history</span><h2>Release notes</h2><p>Browse changes and download previous published builds.</p></div></div><div class="sd-list">@forelse($releases as $release)<article class="sd-row"><div><h3>SonarDesk {{ $release->version }} <span class="sd-badge">{{ ucfirst($release->channel) }}</span></h3><p>{{ \Illuminate\Support\Str::limit(trim(strip_tags($release->release_notes ?? 'Release notes available on the details page.')), 160) }}</p><span class="sd-meta">{{ $release->published_at?->format('j M Y') }}</span></div><div class="sd-row-actions"><a class="sd-button secondary" href="{{ route('sonardesk.releases.show',$release) }}">Full notes</a><a class="sd-button" href="{{ route('sonardesk.releases.download',$release) }}">Download ↓</a></div></article>@empty<div class="sd-empty">No releases have been published yet.</div>@endforelse</div><div style="margin-top:24px">{{ $releases->links() }}</div></section>
@endsection