@extends('eliteadmin::layouts.app') @section('title', 'Marketplace') @section('page_class', 'page-marketplace') @push('styles') @endpush @section('content') @if ($platformNotice ?? null) @endif @if ($registrationWarning ?? null) @endif @if ($catalogNotice ?? null) @endif

Available Modules

@forelse ($modules ?? [] as $module) @php $uuid = (string) ($module['uuid'] ?? ''); $name = (string) ($module['name'] ?? 'Module'); $description = (string) ($module['description'] ?? ''); $specs = \App\Support\RichTextSanitizer::clean($module['specs'] ?? null); $category = (string) ($module['category'] ?? ''); $type = (string) ($module['pricing_type'] ?? 'free'); $price = (float) ($module['price'] ?? 0); $currency = $module['currency'] ?? null; $version = (string) ($module['version'] ?? '1.0'); $isInstalled = in_array($uuid, $installedUuids ?? [], true); $isPaid = $type !== 'free' && $price > 0; $modalId = 'module-specs-'.Str::slug($uuid ?: $loop->index); @endphp
@if ($specs) @endif {{ ucfirst(str_replace('_', ' ', $type)) }} @if ($isInstalled) Installed @endif

{{ $name }}

@if ($category !== '')
{{ $category }}
@endif

{{ $description !== '' ? Str::limit($description, 120) : 'No short description provided.' }}

Version {{ $version }} @if ($isPaid && ! $isInstalled) {{ platform_money($price, $currency) }} @elseif ($type === 'free' || $price <= 0) Free @endif
@if ($specs) @endif @empty

No modules found. Connect to the Product Owner Platform to browse available modules.

@endforelse
@if (isset($modules) && is_object($modules) && method_exists($modules, 'links'))
{{ $modules->links() }}
@endif @endsection