@extends('admin.layouts.master') @php $translation_language = app()->getLocale(); @endphp @section('content')

{{ trans('app.category_sub_groups') }}

@can('create', \App\Models\CategorySubGroup::class) {{ trans('app.bulk_translation_import') }} {{ trans('app.add_category_sub_group') }} @endcan
@can('massDelete', \App\Models\CategorySubGroup::class) @endcan @foreach ($categorySubGrps as $categorySubGrp) @can('massDelete', \App\Models\CategorySubGroup::class) @endcan @endforeach
{{ trans('app.cover_image') }} {{ trans('app.category_sub_group') }} {{ trans('app.parent') }} {{ trans('app.categories') }} {{ trans('app.order') }}  
{{ trans('app.cover_image') }} {{ $categorySubGrp->name }} @unless ($categorySubGrp->active) {{ trans('app.inactive') }} @endunless @if ($categorySubGrp->group->deleted_at) @endif {{ $categorySubGrp->group->name }} {{ $categorySubGrp->categories_count }} {{ $categorySubGrp->order }} @can('update', $categorySubGrp)     @endcan @can('delete', $categorySubGrp) {!! Form::open(['route' => ['admin.catalog.categorySubGroup.trash', $categorySubGrp->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => 'Trash', 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

@can('massDelete', \App\Models\CategorySubGroup::class) {!! Form::open(['route' => ['admin.catalog.categorySubGroup.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.category_sub_group') }} {{ trans('app.parent') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }} @if ($trash->group->deleted_at) @endif {{ $trash->group->name }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.catalog.categorySubGroup.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => 'Delete Permanently', 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection