@php $companyName = getWebConfig(name: 'company_name'); $companyLogo = getWebConfig(name: 'company_web_logo'); $title = $template['title'] ?? null; $body = $template['body'] ?? null; $copyrightText = $template['copyright_text'] ?? null; $footerText = $template['footer_text'] ?? null; $buttonName = $template['button_name'] ?? null; foreach ($template?->translationCurrentLanguage ?? [] as $translate) { $title = $translate->key == 'title' ? $translate->value : $title; $body = $translate->key == 'body' ? $translate->value : $body; $copyrightText = $translate->key == 'copyright_text' ? $translate->value : $copyrightText; $footerText = $translate->key == 'footer_text' ? $translate->value : $footerText; $buttonName = $translate->key == 'button_name' ? $translate->value : $buttonName; } @endphp @extends('layouts.back-end.app') @section('title', translate('email_templates')) @push('css_or_js') @endpush @section('content')