@extends('layouts.app') @section('content') @include('common.alerts') @include('common.errors')
{{ csrf_field() }}

Categories list

@if (count($categories_tree) > 0)
@foreach ($categories_tree as $category) enabled) style="opacity: 0.5;" @endif> @if (count($category->children) > 0) @foreach ($category->children as $sub_category) enabled) style="opacity: 0.5;" @endif> @endforeach @endif @endforeach
  Name Title Type Surface Enabled  
{{ $category->name }} {{ $category->title }} @if (isset($category_types[$category->type])) {{ $category_types[$category->type] }} @else {{ $category->type }} @endif @if (isset($surface_types[$category->surface])) {{ $surface_types[$category->surface] }} @else {{ $category->surface }} @endif @if ($category->enabled) Yes @else No @endif
- {{ $sub_category->name }} {{ $sub_category->title }} @if (isset($category_types[$sub_category->type])) {{ $category_types[$sub_category->type] }} @else {{ $sub_category->type }} @endif @if (isset($surface_types[$sub_category->surface])) {{ $surface_types[$sub_category->surface] }} @else {{ $sub_category->surface }} @endif @if ($sub_category->enabled) Yes @else No @endif
@endif
@endsection