@extends('layouts.app') @section('title', $title ?? config('app.name')) @section('meta_description', __('Android app repository')) @section('content') @php // View receives computed values from the controller: // $totalDownloads, $featuredCount, $categoriesCount, $hasImportSources, and arrays/collections. // Ensure a safe default if the cache was created before controller added these keys. $hasImportSources = isset($hasImportSources) ? $hasImportSources : (!empty($importSources ?? [])); @endphp {{-- HERO SECTION --}}
{{-- Left: main pitch --}}

{{ __('Welcome to :app', ['app' => config('app.name')]) }}

{{ __('Discover and download the latest Android apps and games') }}

{{ number_format($totalDownloads ?? 0) }} {{ __('Total Downloads') }}
{{ number_format($featuredCount ?? 0) }} {{ __('Featured Apps') }}
{{ number_format($categoriesCount ?? 0) }} {{ __('Categories') }}
{{-- Right: live feed --}}

{{ __('Live feed') }}

{{ __('Fresh arrivals') }}

{{ __('Updated :time', ['time' => now()->diffForHumans(null, true)]) }}
    @forelse ($latestApps->take(4) as $app)
  • {{ $app->getTranslatedName() }}
    {{ $app->getTranslatedName() }}

    {{ $app->category?->getTranslatedName() ?? __('Uncategorized') }}

    {{ $app->latest_version }}
    {{ $app->updated_at?->diffForHumans() }}
  • @empty
  • {{ __('No apps found in the live feed yet.') }}
  • @endforelse

{{ __('Connected feeds') }}

@if ($hasImportSources)
@foreach ($importSources as $sourceName) {{ $sourceName }} @endforeach
@else @endif
{{-- MULTI-SOURCE / PIPELINE --}}

{{ __('Multi-Source Pipeline') }}

{{ __('Automated app importing from multiple trusted sources') }}

🔄

{{ __('Auto Sync') }}

{{ __('Automatically import and update apps from connected sources') }}

âš¡

{{ __('Fast Updates') }}

{{ __('Get the latest app versions as soon as they are available') }}

🔒

{{ __('Secure') }}

{{ __('All apps are scanned and verified before publishing') }}

{{-- FEATURED APPS --}}

{{ __('Featured Apps') }}

{{ __('Hand-picked quality applications for you') }}

@forelse ($featuredApps as $app) @empty

{{ __('No featured apps yet.') }}

@endforelse
{{-- TOP CATEGORIES --}}

{{ __('Top Categories') }}

{{ __('Browse apps by category') }}

{{-- LATEST & MOST DOWNLOADED --}}
{{-- Latest updates --}}

{{ __('Latest Updates') }}

{{ __('Recently updated apps') }}

@forelse ($latestApps->take(5) as $app)
{{ $app->getTranslatedName() }}

{{ Str::limit($app->getTranslatedDescription(), 90) }}

{{ $app->updated_at?->diffForHumans() }}
@empty

{{ __('No recent updates yet.') }}

@endforelse
{{-- Most downloaded --}}

{{ __('Most Downloaded') }}

{{ __('Popular apps this month') }}

    @forelse ($mostDownloadedApps->take(5) as $app)
  • {{ $app->getTranslatedName() }}

    {{ $app->category?->getTranslatedName() ?? __('Uncategorized') }}

    {{ $app->formatted_downloads }}
  • @empty
  • {{ __('No popular apps to show yet.') }}
  • @endforelse
{{-- SOURCES / AUTOMATION --}}

{{ __('Import Sources') }}

{{ __('Connected app sources and feeds') }}

{{ count($importSources ?? []) }} {{ __('Active Sources') }}
{{ number_format($totalDownloads ?? 0) }} {{ __('Total Downloads') }}

{{ __('Automation') }}

{{ __('Automated processes and updates') }}

24/7 {{ __('Monitoring') }}
{{ __('Auto') }} {{ __('Updates') }}
@endsection