private function showTemplates()
{
$account = Auth::user()->account->load('country');
$data['account'] = $account;
$data['templates'] = [];
$data['defaultTemplates'] = [];
foreach ([ENTITY_INVOICE, ENTITY_QUOTE, ENTITY_PAYMENT, REMINDER1, REMINDER2, REMINDER3] as $type) {
$data['templates'][$type] = ['subject' => $account->getEmailSubject($type), 'template' => $account->getEmailTemplate($type)];
$data['defaultTemplates'][$type] = ['subject' => $account->getDefaultEmailSubject($type), 'template' => $account->getDefaultEmailTemplate($type)];
}
$data['emailFooter'] = $account->getEmailFooter();
$data['title'] = trans('texts.email_templates');
return View::make('accounts.templates_and_reminders', $data);
}