@can('massDelete', App\CategoryGroup::class)
|
@endcan
@if(Storage::exists(optional($categoryGrp->backgroundImage)->path))
@endif
|
@if(Storage::exists(optional($categoryGrp->coverImage)->path))
@endif
|
{{ $categoryGrp->name }}
@unless($categoryGrp->active)
{{ trans('app.inactive') }}
@endunless
@if($categoryGrp->description)
{!! Str::limit($categoryGrp->description, 220) !!}
@endif
|
{{ $categoryGrp->sub_groups_count }}
|
{{ $categoryGrp->order }} |
@can('update', $categoryGrp)
@endcan
@can('delete', $categoryGrp)
{!! Form::open(['route' => ['admin.catalog.categoryGroup.trash', $categoryGrp->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
|
@endforeach