@extends("admin.layouts.app") @section("styles") @endsection @section("content")
@lang("constants.sections")
@forelse($sections as $section) @empty @endforelse
@lang('constants.image') @lang("constants.title") Layout @lang('constants.is_active') @lang('constants.action')
Image {{$section->title}} {{ ($section->layout_id == 1) ? 'Big Image' : 'Small Image' }} @if ($section->is_active) @else @endif {{Form::open(['route'=>["admin.sections.destroy",$section->id],'method'=>"delete"])}} id)}}" class="btn btn-outline btn-sm purple" title="Edit"> @lang("constants.edit") {!! Form::close() !!}
{!! $sections->links()!!}
@lang("constants.sections_order")
{{ Form::open(['route' => "admin.sections.order",'class'=>"form-horizontal"]) }} {{ Form::hidden('reorder',"",array('id'=>'reorder')) }} {{ Form::hidden('cat_id', $sections->cat_id) }}
    @foreach ($items as $item)
  1. {{$item['title']}} @if($item['is_active']=='0') @endif
  2. @endforeach
{!! Form::close()!!}
@endsection @section("scripts") @include("admin.layouts.update_attribute") @endsection