@can('massDelete', \App\Models\CategoryGroup::class)
|
@endcan
@if (Storage::exists(optional($categoryGrp->backgroundImage)->path))
@endif
|
@if (Storage::exists(optional($categoryGrp->coverImage)->path))
@endif
|
{{-- {{CategoryGroupTranslation::where('category_group_id',$categoryGrp->id)->where('language_id',1)->get(['name']) ?? $categoryGrp->name }}--}}
{{ $categoryGrp_translation->name ?? $categoryGrp->name }}
@unless($categoryGrp->active)
{{ trans('app.inactive') }}
@endunless
@if ($categoryGrp->description)
{!! Str::limit(($categoryGrp_translation->description ?? $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