. */ include_once __DIR__.'/../../core.php'; echo '

'.tr('Informazioni').'

'.tr('Template').'

'.Modules::link('Template email', $mail->template->id, $mail->template->getTranslation('title')).'

'.tr('Utente').'

'.Modules::link('Anagrafiche', $mail->user->anagrafica->id, $mail->user->nome_completo).'

'.tr('Data di invio').'

'.($mail->sent_at ? timestampFormat($mail->sent_at) : '-').'

'.tr('Ultimo tentativo').'

'.($mail->processing_at ? timestampFormat($mail->processing_at) : '-').' ('.tr('totale: _TOT_', [ '_TOT_' => $mail->attempt, ]).')
'; echo '

'.tr('Account mittente').'

'.$mail->template->account->from_name.' <'.$mail->template->account->from_address.'> - '.Modules::link('Account email', $mail->template->account->id, $mail->template->account->getTranslation('title')).'
'; echo '

'.tr('Oggetto').'

'.$mail->subject.'
'; // Destinatari $receivers = $mail->receivers; echo '

'.tr('Destinatari').'

'; foreach ($receivers as $receiver) { echo ' '; } echo '
'.tr('Tipo').' '.tr('Indirizzo').'
'.$receiver->type.' '.$receiver->address.'
'; // Stampe $prints = $mail->prints; echo '

'.tr('Stampe').'

'; foreach ($prints as $print) { echo ' '; } echo '
'.tr('Stampa').' '.tr('Nome').'
'.$print->getTranslation('title').' '.$print->pivot->getTranslation('title').'
'; // Stampe $uploads = $mail->uploads; echo '

'.tr('Allegati').'

'; foreach ($uploads as $upload) { echo ' '; } echo '
'.tr('Allegato').' '.tr('Nome').'
'.$upload->getTranslation('title').' '.$upload->pivot->getTranslation('title').'
'; echo '
'; echo '

'.tr('Contenuto').'

'.$mail->content.'
'; // Posso eliminare l'email solo se questa non è già stata inviata if (empty($mail->sent_at)) { echo ' '.tr('Elimina').' '; }