{{--
  • Бидний тухай
  • --}}
  • {{trans('resource.complaints')}}
  • {{--
  • 99******
  • --}}
  • {{$cur_lang->lang_name}}
      @foreach($langs as $l)
    • {{$l->lang_name}}
    • @endforeach
Асгат

{{$title->title}}

{{$title->body}}

    @php $allcat = clone $categories; $tmp_allcat = clone $categories; @endphp @foreach($allcat->where('parent_id', 0)->get() as $category) @php $tmp = clone $tmp_allcat; $url = ''; if($category->url == '#$cat$#'){ $url = '/category/'.$category->ca_id; }else{ $url = $category->url; } @endphp @if(count($tmp->where('parent_id', $category->ca_id)->get()) != 0)
  • {{$category->source}} @else
  • {{$category->source}} @endif {{getSource($category, clone $categories)}}
  • @endforeach
@include('layouts.web.shorter')
@php function getSource($c, $tmp_allcats){ $subcats = clone $tmp_allcats; $tmp_subcats = clone $tmp_allcats; $cats = $tmp_allcats->where('parent_id', $c->ca_id)->get(); if(count($cats) != 0){ echo '
    '; foreach($cats as $cat){ $url = ''; if($cat->url == '#$cat$#'){ $url = '/category/'.$cat->ca_id; }else{ $url = $cat->url; } if(count($subcats->where('parent_id', $cat->ca_id)->get()) != 0){ echo '
  • '.$cat->source.''; getSource($cat, $tmp_subcats); }else{ echo '
  • '.$cat->source.''; } echo '
  • '; } echo '
'; } } @endphp