@extends("admin.layouts.app") @section("styles") @endsection @section("content")
@lang("constants.categories")
{!! Form::open(['route'=>"admin.categories.index",'method'=>"get"]) !!} {!! Form::close() !!} @forelse($categories as $category) @empty @endforelse
@lang("constants.title") @lang("constants.is_active") Show In Used Items @lang("constants.options")
{{Form::text("title",Request::get("title",null),['class'=>"form-control form-filter input-sm"])}} {!! Form::select("is_active",["active"=>"Active","not-active"=>"Not Active"],Request::get("is_active",null),['class'=>"form-filter input-sm form-control","placeholder"=>"All"])!!} {!! Form::select("is_show_used_item",["yes"=>"Yes","no"=>"No"],Request::get("is_show_used_item",null),['class'=>"form-filter input-sm form-control","placeholder"=>"All"])!!} Reset
{{$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->appends($appends)->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