@extends('layouts.app') @section('title', $page_title) @section('content') @php use Modules\ChartOfHead\Entities\Head; use Illuminate\Support\Str; @endphp
@foreach(MASTER_HEAD_VALUE as $key => $value)
{{ Str::limit($value,15) }}
@foreach(Head::with('subHead','subHead.childHead')->where(['master_head' => $key , 'type' => 1 ])->get() as $head)
{{ Str::limit($head->name,15) }}
@foreach($head->subHead as $subHead)
{{ Str::limit($subHead->name,15) }}
@foreach($subHead->childHead as $childHead)
{{ Str::limit($childHead->name,15) }}
@endforeach
@endforeach
@endforeach
@endforeach
@endsection @push('scripts') @endpush