@extends('layouts.app') @section('title', $structure->unit_name . ' - Struktur Organisasi') @section('content')

{{ $structure->unit_name }}

@if($structure->position_title && $structure->person_name)

{{ $structure->position_title }}: {{ $structure->person_name }}

@endif
@if($structure->image_path) {{ $structure->unit_name }} @else @endif

Informasi Unit

NAMA UNIT
{{ $structure->unit_name }}
@if($structure->parent) @endif
@if($structure->position_title)
JABATAN
{{ $structure->position_title }}
@endif @if($structure->person_name)
PEJABAT
{{ $structure->person_name }}
@endif
HIERARKI LENGKAP
{{ $structure->getFullPath() }}
@if($structure->children->count() > 0)

Unit di Bawahnya ({{ $structure->children->count() }})

@foreach($structure->children as $child)
@if($child->image_path) {{ $child->unit_name }} @else
@endif
{{ $child->unit_name }} @if($child->position_title && $child->person_name)
{{ $child->position_title }}
{{ $child->person_name }}
@endif @if($child->children->count() > 0)
{{ $child->children->count() }} sub-unit
@endif
@endforeach
@endif
Navigasi
Kembali ke Daftar @if($structure->parent) Unit Induk @endif @if($structure->children->count() > 0)
UNIT DI BAWAHNYA:
@foreach($structure->children as $child) {{ $child->unit_name }} @endforeach
@endif
Statistik
{{ $structure->children->count() }}
Unit Langsung
{{ $structure->getAllDescendants()->count() }}
Total Keturunan
@push('styles') @endpush @endsection