{{__("messages.templates")}} @can("add templates") @livewire('add-button-component',['link_route' => route('control.templates.create'),'value' => __('messages.Add')]) @endcan
# template Id channel is Rich Template template Type template Language active model {{__("messages.Updated By")}} {{__("messages.Created At")}}   @forelse ($templates as $key =>$template) #{{$templates->firstItem() + $key}} {{$template->templateId}} {{$template->channel}} {{$template->isRichTemplate}} {{$template->templateType}} {{$template->templateLanguage}} @if( $template->active == 1 ) @else @endif {{$template->model? substr($template->model,11) : ''}} {{__("messages.Updated By")}}{{($template->last_updated_by_user)?$template->last_updated_by_user->name:"-"}} {{__("messages.Created At ")}}{{$template->created_at->diffForHumans()}}
@can("delete templates") {{__("messages.templates")}} {{$template->name}} {{$template->id}} @endcan
@empty {{__("messages.Empty Result")}} @endforelse
{{$templates->links()}}