@extends("admin.layouts.app") @section("styles") @endsection @section("content")
@lang("constants.categories")
@forelse($categories as $category) @empty @endforelse
@lang("constants.title") @lang("constants.is_active") Show In Used Items @lang("constants.options")
{{$category->title}} @if ($category->is_active) @else @endif @if ($category->is_used_item) @else @endif {{Form::open(['route'=>["admin.categories.destroy",$category->id],'method'=>"delete"])}} id)}}" class="btn btn-outline btn-sm purple" title="Edit"> @lang("constants.edit") @if(!$category->category_id) id)}}" class="btn btn-outline btn-sm green" title="Edit"> @lang("constants.sections") @endif {!! Form::close() !!}
{!! $categories->links()!!}
@lang("constants.categories_order")
{{ Form::open(['route' => "admin.categories.order",'class'=>"form-horizontal"]) }} {{ Form::hidden('reorder',"",array('id'=>'reorder')) }}
    @foreach ($items as $item)
  1. {{$item['title']}} @if($item['is_active'] == '0') @endif
    @if(count($item['childs']) > 0)
      @foreach ($item['childs'] as $item2)
    1. {{ $item2['title'] }} @if($item2['is_active']=='0') @endif
      @if(count($item2['childs']) > 0)
        @foreach($item2['childs'] as $item3)
      1. {{ $item3['title'] }} @if($item3['is_active']=='0') @endif
        @if(count($item3['childs']) > 0)
          @foreach($item3['childs'] as $item4)
        1. {{ $item4['title'] }}
        2. @endforeach
        @endif
      2. @endforeach
      @endif
    2. @endforeach
    @endif
  2. @endforeach
{!! Form::close()!!}
@endsection @section("scripts") @include("admin.layouts.update_attribute") @endsection