@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@php $dataJson = json_decode($list->data); $isNested = isset($dataJson->en) || isset($dataJson->id) || isset($dataJson->ja); $dataEn = $isNested ? ($dataJson->en ?? null) : $dataJson; $dataId = $isNested ? ($dataJson->id ?? null) : $dataJson; $dataJa = $isNested ? ($dataJson->ja ?? null) : $dataJson; @endphp

View {{ $title_menu }}


Nama Menu

@php $menuLabel = \Illuminate\Support\Facades\DB::table('sys_enum') ->where('idenum', 'investor_menu') ->where('value', $list->menu_key) ->value('name'); @endphp {{ $menuLabel ?? ucwords(str_replace('-', ' ', $list->menu_key)) }}

Template Tampilan

@if ($list->template_type == 'text_editor') Text Editor (Berita) @elseif($list->template_type == 'upload_file') Upload File @elseif($list->template_type == 'collapse') Collapse (Multi-Item) @else {{ $list->template_type }} @endif

Status

{{ $list->isactive == 1 ? 'Aktif' : 'Tidak Aktif' }}
{{-- ── LABEL SIDEBAR PER BAHASA ── --}}

Label Sidebar per Bahasa

🇮🇩 Label Indonesia

{{ $list->label_id ?: '—' }}

🇬🇧 Label English

{{ $list->label_en ?: '—' }}

🇯🇵 Label Japan

{{ $list->label_jp ?: '—' }}
{{-- ── DATA KONTEN ── --}}
Data Konten ({{ $list->template_type }})
{{-- ── Language Tab Switcher ── --}}
Pilih Bahasa:
@if ($list->template_type == 'text_editor') {{-- ID --}}

🇮🇩 Konten Indonesia

{!! $dataId->content ?? 'Tidak ada konten' !!}
{{-- EN --}} {{-- JA --}} {{-- UPLOAD FILE --}} @elseif($list->template_type == 'upload_file') {{-- ID --}}
@if (!empty($dataId->items))
@foreach ($dataId->items as $idx => $card) @php $cardEn = $dataEn->items[$idx] ?? null; @endphp

Judul: {{ $card->judul ?? '-' }}

@if (!empty($card->sub_judul))
Sub Judul:
{!! $card->sub_judul !!}
@endif

File (PDF): @if (!empty($cardEn->file_url)) Lihat @else - @endif

@endforeach
@else Tidak ada item file upload yang tersimpan. @endif
{{-- EN --}} {{-- JA --}} {{-- COLLAPSE --}} @elseif($list->template_type == 'collapse') {{-- ID --}}
@if (!empty($dataId->groups))
@foreach ($dataId->groups as $gIdx => $group) @php $groupEn = $dataEn->groups[$gIdx] ?? null; @endphp
@if (!empty($group->items))
@foreach ($group->items as $iIdx => $item) @php $itemEn = $groupEn->items[$iIdx] ?? null; @endphp @endforeach
Judul Item File (ID) File (EN) File (JP)
{{ $item->judul ?? '-' }} @if (!empty($itemEn->file_url_id)) Lihat @else - @endif @if (!empty($itemEn->file_url_en)) Lihat @else - @endif @if (!empty($itemEn->file_url_jp)) Lihat @else - @endif
@else Tidak ada item dalam group ini. @endif
@endforeach
@else Tidak ada group collapse yang tersimpan. @endif
{{-- EN --}} {{-- JA --}} @endif
@endsection