@extends('org.layout.adminPanel') @section('title', 'Project') @section('section') @php $indexKeys = array_keys($folderpath); $projectInfo = \App\Models\Project::where('id', decode($project_id))->first(); $depInfo = \App\Models\Department::where('id', decode($dep_id))->first(); $org_location_id = encode($depInfo->org_location); $depParent = trim(treeParent($depInfo), ','); $depParent = array_reverse(explode(',', $depParent)); @endphp @foreach ($depParent as $key => $dep) @if (!empty($dep)) @php $depInfo = \App\Models\Department::find($dep); if ($key == 0) { $locationInfo = \App\Models\Location::find($depInfo->org_location); $orgInfo = $locationInfo->parent; } @endphp @if ($key == 0) Organisation / {{ $orgInfo->name }} / {{ $locationInfo->name }} / @endif {{ $depInfo->name }} / @endif @endforeach {{ $projectInfo->name }} / @if (count($folderpath) > 0) Folders @else Folders @endif @foreach ($folderpath as $key => $val) @if (end($indexKeys) != $key) {{ ' / ' }} {{ $val }} @else {{ ' / ' }} {{ $val }} @endif @endforeach @endsection @section('css') {{-- css --}} {{-- --}} @endsection @section('content') {{-- content --}}
@if (count($folderpath) > 0)

{{ end($folderpath) }}

@endif
@if (!empty(Session::get('msg'))) @endif
@if (count($folders) < 1)
Nothing found, Create folder
@endif @foreach ($folders as $folder) @php $folderEncodedId = encode($folder->id); @endphp

{{ $folder->name }}

@endforeach
@if (!empty($main_id)) {{-- item --}}

{{--
--}}
# Name Type Status Next review due Action
{{--
Nothing found, Add item
--}} {{--
--}} @endif
@endsection @section('js') {{-- js --}} {{-- --}} @endsection