{{ $name }}
@php // Item 3D model: equipment items are character body-parts. Key (core) = // group1(faction, male) + part(category) + iDataNumber3D, per game. // Pre-built offline (pixels only). Shared viewer partial (turntable/static). $itemPart = [ 'Cape' => '010', 'Armor' => '003', 'Boots' => '004', 'Sword' => '005', 'Katana' => '005', 'Long Blade' => '005', 'Blade' => '006', 'Double Blades' => '006', 'Spear' => '006', 'Marble' => '007', 'Lute' => '007', 'Scepter' => '007', 'War Fan' => '007', ][(string) ($meta['category'] ?? '')] ?? null; $item3dIdx = (int) ($meta['raw']['iDataNumber3D'] ?? 0); $modelImg = null; $turnUrl = null; if ($itemPart && $item3dIdx > 0) { $facG1 = ['Guanyin' => 1, 'Fujin' => 2, 'Jinong' => 3, 'Nangin' => 7][(string) ($meta['faction'] ?? '')] ?? 1; $core = sprintf('%03d%s%03d', $facG1, $itemPart, $item3dIdx); $gameSlug = str_contains((string) ($game ?? ''), '2') ? 'ts2' : 'ts1'; $imgRel = 'images/models/items/' . $gameSlug . '/' . $core . '.png'; if (is_file(public_path($imgRel))) $modelImg = asset($imgRel); $turnRel = 'images/models/items/' . $gameSlug . '/turntable/' . $core . '.webp'; if (is_file(public_path($turnRel))) $turnUrl = asset($turnRel); } @endphp @include('wiki.partials.model_viewer', ['turnUrl' => $turnUrl, 'modelImg' => $modelImg, 'name' => $name]){{ __('Description') }}
@foreach($descLines as $line)
{{ $line }}
@endforeach
{{ __('Base Details') }}
@foreach($baseRows as $row)
{{ $row['label'] }}
{{ $row['value'] }}
@endforeach
{{ __('Details') }}
@foreach($detailRows as $row)
{{ $row['label'] }}
@if(isset($row['value_html']))
{!! $row['value_html'] !!}
@else
{{ $row['value'] }}
@endif
@endforeach
{{ __('Action Rules') }}
@foreach($allowedActionRows as $row)
{{ $row['label'] }}
@if($row['status'] === 'allowed')
✓
@else
✗
@endif
@endforeach