@extends('admin.layouts.master') @section('content')

{{ trans('app.category_sub_group') . ' : ' }}{{ $categorySubGroup->name . ' | ' }}{{ trans('app.categories') }}

@can('massDelete', \App\Models\Category::class) @else @endcan @foreach ($categories as $category) @can('massDelete', \App\Models\Category::class) @endcan @endforeach
 {{ trans('app.cover_image') }} {{ trans('app.feature_image') }} {{ trans('app.category_name') }}  
@unless ($category->products_count) @endunless {{ trans('app.cover_image') }} {{ trans('app.feature_image') }} {{ $category->name }} @can('update', $category)   @endcan @can('delete', $category) {!! Form::open(['route' => ['admin.catalog.category.trash', $category->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

@can('massDelete', \App\Models\Category::class) {!! Form::open(['route' => ['admin.catalog.category.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_name') }} {{ trans('app.parent') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }}
@if ($trash->description) {!! Str::limit($trash->description, 150) !!} @endif
@if ($trash->subGroup->group->deleted_at) @endif {!! $trash->subGroup->group->name !!}    @if ($trash->subGroup->deleted_at) @endif {!! $trash->subGroup->name !!} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.catalog.category.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection