@extends('layouts.app') @section('title', isset($platform) ? $platform . ' Apps' : (isset($category) ? $category->name : 'Discover Apps')) @push('styles') @endpush @section('content')
@if(isset($platform)) {{ $platform }} Platform @else HBU App Store @endif

@if(isset($platform)) The Best Apps for {{ $platform }} @elseif(isset($category)) Apps in {{ $category->name }} @else Discover Your Next Favorite App @endif

Secure downloads for all your devices. Browse the latest high-performance applications carefully selected for you.

HBU App Store Logo
@php $heroApps = $applications->whereNotNull('icon_path')->take(6); $count = $heroApps->count(); @endphp @foreach($heroApps as $index => $app) @php $angle = ($index / max(1, $count)) * 360; $radius = 130; $x = $radius * cos(deg2rad($angle)); $y = $radius * sin(deg2rad($angle)); @endphp
{{ $app->name }}
@endforeach {{-- Dynamic spacers if apps are few --}} @for($i = $count; $i < 4; $i++) @php $angle = ($i / 4) * 360; $x = 130 * cos(deg2rad($angle)); $y = 130 * sin(deg2rad($angle)); @endphp
@endfor
Browse Categories
All Applications @foreach($categories as $cat) {{ $cat->name }} {{ $cat->applications_count }} @endforeach

@if(isset($platform)) {{ $platform }} Apps @elseif(isset($category)) {{ $category->name }} @else Featured Apps @endif

{{ count($applications) }} Apps Available
@forelse($applications as $app)
{{ $app->name }}
{{ $app->platform }}
{{ $app->name }}
{{ $app->category->name ?? 'Uncategorized' }}

{!! nl2br(e($app->description)) !!}

Downloads {{ number_format($app->downloads) }}
File Size {{ $app->download_size_human ?? 'Unknown' }}
@if($app->files->count() > 1) @else @php $firstFile = $app->files->first(); $downloadUrl = $firstFile ? route('download', ['id' => $app->id, 'file_id' => $firstFile->id]) : route('download', ['id' => $app->id]); @endphp Download Now @endif
@empty
No applications found

Try checking another category or platform.

@endforelse
@push('scripts') @endpush @endsection