@extends('common::layouts.master') @section('post-aria-expanded') aria-expanded="true" @endsection @section('post-show') show @endsection @section('post') active @endsection @section('sub-category-active') 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-sub-category','method' => 'post']) !!}

{{ __('add_sub_category') }}

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

{{ __('sub_categories') }}

@if(Sentinel::getUser()->hasAccess(['sub_category_write']) || Sentinel::getUser()->hasAccess(['sub_category_delete'])) @endif @foreach ($subCategories as $subCategory) @if(Sentinel::getUser()->hasAccess(['sub_category_write']) || Sentinel::getUser()->hasAccess(['sub_category_delete'])) @endif @endforeach
# {{ __('sub_category_name') }} {{ __('language') }} {{ __('parent_category') }}{{ __('options') }}
{{ $subCategory->id }} {{ $subCategory->sub_category_name }} {{ $subCategory->language }} {{ $subCategory->category['category_name'] }}

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

@section('script') @endsection @endsection