@extends('common::layouts.master') @section('sections') active @endsection @section('content')
@if(session('error'))
{{session('error')}}
@endif @if(session('success'))
{{session('success')}}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!! Form::open(['route'=>'save-new-section','method' => 'post', 'id' => 'save-new-section']) !!}

{{ __('add_section') }}

{{--
--}}
{!! Form::close() !!}

{{ __('primary_section') }}

{!! Form::open(['route'=>'update-primary-section','method' => 'post']) !!}
image
image
image
{{ __('none') }}
{!! Form::close() !!}

{{ __('sections') }}

@if(Sentinel::getUser()->hasAccess(['theme_section_write']) || Sentinel::getUser()->hasAccess(['theme_section_delete'])) @endif @csrf @foreach ($sections as $section) @if(Sentinel::getUser()->hasAccess(['theme_section_write']) || Sentinel::getUser()->hasAccess(['theme_section_delete'])) @endif @endforeach
{{ __('section_label') }} {{ __('status') }} {{ __('show_ad_in_bottom') }} {{ __('order') }} {{ __('section_style') }}{{ __('options') }}
{{ $section->type == 1? $section->label: __($section->label) }} @if($section->status == 1) @else @endif {{ $section->ad->ad_name ?? __('none') }} {{ $section->section_style }}

{{ __('showing')}} {{ $sections->firstItem()}} {{ __('to') }} {{ $sections->lastItem()}} of {{ $sections->total()}} {{ __('entries') }}

@endsection