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

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

@can('create', \App\Models\Category::class) {{ trans('app.bulk_translation_import') }} {{ trans('app.add_category') }} @endcan
{{--
--}} @can('massDelete', \App\Models\Category::class) @else @endcan
 {{ trans('app.cover_image') }} {{ trans('app.feature_image') }} {{ trans('app.category_name') }} {{ trans('app.parent') }} {{ trans('app.attributes') }} {{ trans('app.products') }} {{ trans('app.listings') }} {{ trans('app.order') }}  

@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