@extends('org.layout.adminPanel') @section('title', 'Department') @section('section') @php $locationInfo = Helper::getlocationInfo($org_location_id); $orgInfo = $locationInfo->parent; $activeDep = array_reverse($activeDep); $lastId = end($activeDep) ?? 0; $dep_id = encode($lastId); @endphp Organisation / {{ $orgInfo->name }} / @if (count($activeDep) > 0) {{ $locationInfo->name }} @else {{ $locationInfo->name }} @endif @foreach ($activeDep as $dep) / @php $depInfo = Helper::getDepartmentInfo(encode($dep)); @endphp @if ($dep != $lastId) {{ $depInfo->name }} @else {{ $depInfo->name }} @endif @endforeach @endsection @section('css') {{-- css --}} {{-- --}} @endsection @section('content') {{-- content --}}
{{--
{!! $tree !!}
--}}

{{ $locationInfo->name }}

{{--

{{ $depName }}

--}}

Departments

{{-- project --}} @if (count($activeDep) < 1)
+ Add Department
@endif @if (count($activeDep) > 0)
+ Add Sub-Department
@endif {{-- department --}}
# Name Manager Action
@if (count($activeDep) > 0)
+ Add Project

# Name Manager Action

@endif
{{-- trash popup --}} @endsection @section('js') {{-- js --}} {{-- --}} @endsection