@extends('admin.layout') @section('title', 'Templates') @section('content')

Templates de Publipostage

Gérez vos templates d'emails et de PDF

Nouveau Template
@if($templates->isEmpty())

Aucun template disponible.

Créer le premier template
@else
@foreach($templates as $template) @endforeach
Nom Liste Excel Sujet Variables Statut Créé le Actions
{{ $template->name }}
@if($template->excelFile) {{ $template->excelFile->name }} {{ trans_choice('messages.rows', $template->excelFile->row_count, ['count' => number_format($template->excelFile->row_count, 0, ',', ' ')]) }} @else - @endif {{ $template->subject ?: '-' }} @if($template->variables && count($template->variables) > 0)
{{ trans_choice('messages.variables', count($template->variables), ['count' => number_format(count($template->variables), 0, ',', ' ')]) }} @if(count($template->variables) <= 5) @foreach($template->variables as $var) {{ $var }} @endforeach @else @foreach(array_slice($template->variables, 0, 3) as $var) {{ $var }} @endforeach +{{ count($template->variables) - 3 }} @endif
@else Aucune @endif
@if($template->is_default) Par défaut @else - @endif {{ optional($template->created_at)->locale(app()->getLocale())->diffForHumans() }}
@endif
@foreach($templates as $template) @endforeach @endsection @section('scripts') @endsection