@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@include('components.alert')

Detail {{ $title_menu }}


@php $enumTipeLaporan = collect( DB::select( "select value, name from sys_enum where idenum = 'tipe_laporan' and isactive = '1'", ), ); $tipeLaporanName = optional($enumTipeLaporan->firstWhere('value', $list->tipe_laporan))->name ?? $list->tipe_laporan; @endphp
@if (!empty($assigned_users) && count($assigned_users) > 0)
@foreach ($assigned_users as $user) @php $label = trim(($user->firstname ?? '') . ' ' . ($user->lastname ?? '')); $label = $label === '' ? $user->username : $label . ' (' . $user->username . ')'; @endphp {{ $label }} @endforeach
@else

Tidak ada user spesifik (semua user sesuai otorisasi menu).

@endif

Field Template & Template Data


@if (empty($field_templates) || count($field_templates) === 0)

Belum ada field template.

@else @php $isLabaRugi = $list->tipe_laporan == 'Laba-Rugi'; @endphp @if ($isLabaRugi)
@foreach ($field_templates as $fIndex => $field) @php $isTotal = $field->tipe_template == 'Total'; $rowId = 'field-' . $field->id_field; @endphp @if (!$isTotal && !empty($field->template_data)) @include('master.mstemplate.partials.show_node', [ 'nodes' => $field->template_data, 'level' => 1, 'isLabaRugi' => true, 'parentId' => $rowId, ]) @endif @endforeach
Keterangan / Description Bulan Berjalan Bulan Sebelumnya
@if (!$isTotal) @endif {{ $field->nama }} 0,00 0,00
@else
@foreach ($field_templates as $field) @php $templateType = strtolower($field->tipe_template ?? 'details'); $isDetailType = $templateType === 'details'; $sectionId = 'neraca-field-' . $field->id_field; @endphp @if ($isDetailType && !empty($field->template_data) && count($field->template_data) > 0) @include( 'master.mstemplate.partials.show_node_neraca', [ 'nodes' => $field->template_data, 'level' => 0, 'parentId' => $sectionId, 'hiddenByDefault' => $isDetailType, ] ) @endif @endforeach
Keterangan / Description
@if ($isDetailType) @endif {{ $field->nama }} ({{ $isDetailType ? 'Detail' : 'Total' }})
Grup Detail (bisa expand/collapse, default tertutup) Grup Total (tetap tampil, tidak bisa expand)
@endif @endif
@if ($list->tipe_laporan == 'Laba-Rugi') @endif @if ($list->tipe_laporan == 'Neraca') @endif @if ($authorize->edit == '1') @endif @endsection @push('js') @endpush