From 259b1eac12e3079b2da20487044ed37da04a517b Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Mon, 12 Oct 2026 10:18:16 +0100 Subject: [PATCH] download fixes --- resources/views/admin/download-products/index.blade.php | 4 ++-- resources/views/downloads/index.blade.php | 2 -- resources/views/layouts/app.blade.php | 0 routes/web.php | 0 4 files changed, 2 insertions(+), 4 deletions(-) mode change 100755 => 100644 resources/views/layouts/app.blade.php mode change 100755 => 100644 routes/web.php diff --git a/resources/views/admin/download-products/index.blade.php b/resources/views/admin/download-products/index.blade.php index c63541b..70ffdf7 100644 --- a/resources/views/admin/download-products/index.blade.php +++ b/resources/views/admin/download-products/index.blade.php @@ -5,8 +5,8 @@ @if(session('status'))
{{ session('status') }}
@endif @if($errors->any())@endif
Total products{{ $products->count() }}
Published{{ $products->where('is_published', true)->count() }}
Drafts{{ $products->where('is_published', false)->count() }}
Total downloads{{ number_format($products->sum('download_count')) }}
-

Product catalogue

Publish or unpublish products instantly, or edit their details.

+ Add product
- @forelse($products as $product) +

Product catalogue

Publish or unpublish products instantly, or edit their details.

ProductVersion / PlatformDownloadsStatusActions
{{ $product->name }}{{ \Illuminate\Support\Str::limit($product->description ?: $product->original_filename, 70) }}{{ $product->version ?: '—' }}{{ $product->platform ?: 'Unspecified' }} · {{ $product->formatted_size }}{{ number_format($product->download_count) }}{{ $product->is_published ? 'Published' : 'Draft' }}
Edit
@csrf @method('PATCH')
+ @forelse($products as $product) @empty@endforelse
ProductVersion / PlatformDownloadsStatusActions
{{ $product->name }}{{ \Illuminate\Support\Str::limit($product->description ?: $product->original_filename, 70) }}{{ $product->version ?: '—' }}{{ $product->platform ?: 'Unspecified' }} · {{ $product->formatted_size }}{{ number_format($product->download_count) }}{{ $product->is_published ? 'Published' : 'Draft' }}
@csrf @method('PATCH')
No additional products yet. Add your first installer below.
any() && !old('_method')) open @endif>Add a new productUpload an installer and choose whether to publish it.+
@csrf
diff --git a/resources/views/downloads/index.blade.php b/resources/views/downloads/index.blade.php index f360b60..040e708 100644 --- a/resources/views/downloads/index.blade.php +++ b/resources/views/downloads/index.blade.php @@ -6,8 +6,6 @@ @if($products->isNotEmpty())
Software catalogue

More downloads

Additional tools and installers available from our team.

@foreach($products as $product)
{{ $product->platform ?: 'Software' }}{{ $product->version ? 'v'.$product->version : 'Latest' }}

{{ $product->name }}

{{ $product->description ?: 'Download the latest available package.' }}

@endforeach
@endif -
More downloads

Other products

Explore our other available software and downloads.

@foreach($products as $product)
{{ $product->name }}@if($product->version) {{ $product->version }}@endif{{ $product->description }}@if($product->platform){{ $product->platform }}@endif
{{ $product->formatted_size }}Download
@endforeach
-@endif
Release archive

Previous versions

Published SonarDesk builds remain available here for customers who need a previous release.

@forelse($releases as $release)
SonarDesk {{ $release->version }}Build {{ $release->build_number }} · {{ ucfirst($release->channel) }} · {{ $release->published_at?->format('j M Y') }}
{{ $release->formatted_size }}Download
@empty

No published releases are available yet.

@endforelse
{{ $releases->links() }}
Support

Installation or activation help?

{{ $settings['support_text'] }}

Contact SonarDesk support
@endsection diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php old mode 100755 new mode 100644 diff --git a/routes/web.php b/routes/web.php old mode 100755 new mode 100644