@php $seoBaseTitle = $game . ' - ' . ucfirst($section); $seoTitle = $seoBaseTitle . ' • Vortex Sky X Wiki'; $seoDescription = 'Browse ' . $game . ' ' . ucfirst($section) . ' with filters, levels, and factions.'; @endphp {{ $seoTitle }} @include('wiki.partials.seo', [ 'title' => $seoTitle, 'description' => $seoDescription, 'type' => 'website', 'game' => $game ?? null, ]) @vite(['resources/css/app.css', 'resources/js/app.js']) @include('wiki.partials.header', ['databaseMenu' => $databaseMenu]) @php $sectionKey = strtolower((string) $section); $isSkillsSection = $sectionKey === 'skills'; $isNpcSection = in_array($sectionKey, ['npc', 'npcs'], true); $isMonsterSection = $sectionKey === 'monsters'; $showFactionColumn = $isSkillsSection || $isNpcSection; $showOrderFilter = $isNpcSection || $isSkillsSection || $isMonsterSection; $selectedSkillFaction = (string) ($filters['faction'] ?? ''); $selectedOrder = (string) ($filters['order'] ?? 'id_asc'); $orderOptions = $isMonsterSection ? [ 'id_asc' => 'ID (low→high)', 'id_desc' => 'ID (high→low)', 'level_asc' => 'Level (low→high)', 'level_desc' => 'Level (high→low)', 'name_asc' => 'Name (A→Z)', 'name_desc' => 'Name (Z→A)', ] : [ 'id_asc' => 'ID (low→high)', 'id_desc' => 'ID (high→low)', 'name_asc' => 'Name (A→Z)', 'name_desc' => 'Name (Z→A)', ]; $skillFactionOptions = ['Guanyin', 'Fujin', 'Jinong', 'Nangin', 'All Factions']; $minLevel = (string) ($filters['min_level'] ?? ''); $maxLevel = (string) ($filters['max_level'] ?? ''); @endphp

{{ $game }} - {{ ucfirst($section) }}

Filters
@if($showFactionColumn)
@foreach($skillFactionOptions as $factionOption) @endforeach
@endif @if($isMonsterSection)
@endif @if($showOrderFilter)
@foreach($orderOptions as $v => $lbl) @endforeach
@else
@endif
@if($entries->count() === 0)

No entries found.

@else
Name
@if($isMonsterSection)
Level
@endif @if($showFactionColumn)
Faction Fac
@endif
@foreach($entries as $row) @php $slug = (string) ($row['slug'] ?? ''); $idForMonster = $isMonsterSection ? (string) ($row['id'] ?? $row['mIndex'] ?? '') : ''; $href = $isMonsterSection && $idForMonster !== '' ? url('/wiki/' . $game . '/monsters/' . $idForMonster) : url('/wiki/' . $game . '/' . $section . '/' . $slug); $name = (string) ($row['name'] ?? $slug); $icon = $isSkillsSection ? ($row['icon'] ?? null) : null; $level = $isMonsterSection ? (int) ($row['level'] ?? $row['mLevel'] ?? 0) : null; $faction = (string) ($row['faction'] ?? 'All Factions'); $factionKey = strtolower(trim($faction)); $facClass = match ($factionKey) { 'guanyin' => 'wk-f-guanyin', 'fujin' => 'wk-f-fujin', 'jinong' => 'wk-f-jinong', 'nangin' => 'wk-f-nangin', 'all factions' => 'wk-f-all-factions', default => '', }; $factionShort = match ($factionKey) { 'guanyin' => 'G', 'fujin' => 'F', 'jinong' => 'J', 'nangin' => 'N', 'all factions' => 'A', default => strtoupper(substr($faction, 0, 1)), }; $nameClass = ($isSkillsSection || $isNpcSection) ? $facClass : ''; @endphp
@if($icon) {{ $name }} @endif {{ $name }}
@if($isMonsterSection)
{{ $level && $level > 0 ? $level : '-' }}
@endif @if($showFactionColumn)
{{ $faction }} {{ $factionShort }}
@endif
@endforeach
@if($entries->lastPage() > 1) @endif @endif