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