@if ($customerEmailTemplates->count() > 0)
@if (Auth::user()->can('update', $customerEmailTemplate)) @if ($customerEmailTemplate->template->categories()->count()) {{ $customerEmailTemplate->template->categories->map(function ($cat) { return $cat->name; })->join(', ') }} @else {{ trans('messages.template.category.no_category_set') }} @endif @else {{ $customerEmailTemplate->template->categories()->count() ? $customerEmailTemplate->template->categories->map(function ($cat) { return $cat->name; })->join(', ') : 'N/A' }} @endif