@extends('back-office.layouts.layout-default')
@section('specific_css')
@endsection
@section('page_content')
@component('back-office.components.portlets.main', ['types' => [''], 'add_link' => 'admin/projects-categories/create'])
@slot('title')
Catégories de projets
@endslot
@slot('body')
@foreach($categories as $category)
@if(!$category->parent_id)
-
{{ $category->title }}
@foreach($categories as $subCategory)
@if($subCategory->parent_id && $subCategory->parent_id == $category->id)
-
{{ $subCategory->title }}
@endif
@endforeach
-
Ajouter
@endif
@endforeach
@endslot
@endcomponent
@endsection
@section('specific_js')
@endsection