@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif
{{ __('Discover Plugins') }}
{{ __('Back to Plugins') }}
@if (empty($marketplacePlugins))
{{ __('Marketplace Unavailable') }}

{{ __('Could not fetch marketplace data. Please check your internet connection.') }}

@else @php $categoryMap = []; foreach ($marketplacePlugins as $p) { $cat = !empty($p['category']) ? $p['category'] : (!empty($p['catergory']) ? $p['catergory'] : 'Others'); if (!isset($categoryMap[$cat])) { $categoryMap[$cat] = 0; } $categoryMap[$cat]++; } ksort($categoryMap); @endphp
@foreach ($categoryMap as $catName => $catCount) @endforeach
@foreach ($marketplacePlugins as $index => $plugin) @php $slug = $plugin['slug'] ?? ''; $installed = $installedPlugins->has($slug); $installedVersion = $installed ? ($installedPlugins->get($slug)['version'] ?? null) : null; $isSameVersion = $installed && $installedVersion === ($plugin['version'] ?? null); $requires = $plugin['requires'] ?? []; $missingDeps = []; foreach ($requires as $dep) { $depPlugin = $installedPlugins->get($dep); if (!$depPlugin || !($depPlugin['is_enabled'] ?? false)) { $missingDeps[] = $dep; } } $pluginCategory = !empty($plugin['category']) ? $plugin['category'] : (!empty($plugin['catergory']) ? $plugin['catergory'] : 'Others'); @endphp
@if (!empty($plugin['screenshot'])) {{ $plugin['name'] ?? '' }} @else
@endif
@if (!empty($plugin['official']) && $plugin['official'] == '1') @endif @if (!empty($plugin['pro']) && $plugin['pro'] == '1') @if (!empty($plugin['pro_url'])) @else @endif @endif @if ($installed) @if ($isSameVersion) {{ __('Installed') }} @else {{ __('Update Available') }} @endif @endif
{{ $plugin['name'] ?? $slug }}
@if (!empty($plugin['donation'])) {{ __('Donate') }} @endif
@if (!empty($plugin['website'])) {{ $plugin['author'] ?? __('Unknown Author') }} @else {{ $plugin['author'] ?? __('Unknown Author') }} @endif

{{ $plugin['description'] ?? __('No description available.') }}

v{{ $plugin['version'] ?? '?' }} @if (!empty($plugin['compatibility'])) {{ $plugin['compatibility'] }} @endif @if (!empty($plugin['download_num'])) {{ number_format((int)$plugin['download_num']) }} @endif @if (!empty($plugin['license'])) @if (!empty($plugin['license_url'])) @else @endif @endif @if (!empty($missingDeps)) {{ __('Missing Dependencies') }} @endif
@endforeach
{{ __('No plugins found') }}

{{ __('Try a different search term.') }}

@endif