@if ($templates->count() > 0)
| 
                     | 
                
                    
                         | 
                
                    {{ $template->name }}
                        {!! $template->admin ? '' . $template->admin->displayName() : '' !!}
                        {!! $template->customer ? '' . $template->admin->displayName() : '' !!}
                     
                    {{ trans('messages.updated_at') }}: {{ Auth::user()->admin->formatDateTime($template->created_at, 'datetime_full') }}
                 | 
                
                     
                        @if (Auth::user()->admin->can('update', $template))
                            
                                @if ($template->categories()->count())
                                    {{ $template->categories->map(function ($cat) {
                                        return $cat->name;
                                    })->join(', ') }}
                                @else
                                    {{ trans('messages.template.category.no_category_set') }}
                                @endif
                            
                            @if ($template->categories()->count())
                                 
                {{ trans('messages.template.category') }} @endif @else {{ $template->categories()->count() ? $template->categories->map(function ($cat) { return $cat->name; })->join(', ') : 'N/A' }} @endif  | 
                
                    @if (Auth::user()->admin->can('update', $template))
                        @if (in_array(Acelle\Model\Setting::get('builder'), ['both','pro']) && $template->builder)
                            
                                {{ trans('messages.template.pro_builder') }}
                            
                        @endif
                        @if (in_array(Acelle\Model\Setting::get('builder'), ['both','classic']))
                            
                                {{ trans('messages.template.classic_builder') }}
                            
                        @endif
                    @endif
                    @if (Auth::user()->admin->can('preview', $template) ||
                        Auth::user()->admin->can('copy', $template) ||
                        Auth::user()->admin->can('delete', $template) ||
                        Auth::user()->admin->can('update', $template))
                         |