@extends('front.template.master') @section('content')
@foreach($section as $s) {{ $s->name }} @endforeach
@foreach($section as $s)
@foreach($sub_section as $ss) @if($s->id == $ss->section_id) @php $count=0; @endphp @if(count($knowledge) > 0) @foreach($knowledge as $k) @if($ss->id == $k->sub_section) @php $count++; @endphp @endif @endforeach @endif

{{ $ss->name }} - {{ $ss->description }} {{$count}}


@foreach($knowledge as $k) @if($ss->id == $k->sub_section)

{{ $k->name }}

{{ $k->description }}

@endif @endforeach
@endif @endforeach
@endforeach
@endsection