Insert signature into bottom section of client emails instead of generic text

This commit is contained in:
Benjamin Beganović 2021-06-23 10:47:41 +02:00
parent 38504e2d53
commit bd2e05d3ac
2 changed files with 20 additions and 17 deletions

View File

@ -25,7 +25,7 @@
@endisset @endisset
@isset($signature) @isset($signature)
{!! $signature !!} {!! nl2br($signature) !!}
@endisset @endisset
</div> </div>
@endcomponent @endcomponent

View File

@ -90,6 +90,10 @@
#content .center { #content .center {
text-align: center; text-align: center;
} }
#content .left {
text-align: left !important;
}
</style> </style>
</head> </head>
@ -116,16 +120,12 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<div style="border: 1px solid #c2c2c2; border-top: none; border-bottom: none; padding: 20px;" id="content"> <div style="border: 1px solid #c2c2c2; border-top: none; border-bottom: none; padding: 20px; text-align: center" id="content">
<div style="padding-top: 10px;"></div> <div style="padding-top: 10px;"></div>
{{ $slot ?? '' }} {{ $slot ?? '' }}
{!! $body ?? '' !!} {!! $body ?? '' !!}
@isset($signature)
{{ nl2br($signature) }}
@endisset
<div> <div>
<a href="#" <a href="#"
style="display: inline-block;background-color: {{ $primary_color }}; color: #ffffff; text-transform: uppercase;letter-spacing: 2px; text-decoration: none; font-size: 13px; font-weight: 600;"> style="display: inline-block;background-color: {{ $primary_color }}; color: #ffffff; text-transform: uppercase;letter-spacing: 2px; text-decoration: none; font-size: 13px; font-weight: 600;">
@ -135,24 +135,27 @@
</td> </td>
</tr> </tr>
@if(isset($company) && $company instanceof \App\Models\Company)
<tr> <tr>
<td> <td>
<div class="dark-bg dark-text-white" <div class="dark-bg dark-text-white"
style="text-align: center; padding-top: 10px; padding-bottom: 25px; background-color: #f9f9f9; border: 1px solid #c2c2c2; border-top: none; border-bottom-color: #f9f9f9;"> style="text-align: center; padding-top: 10px; padding-bottom: 25px; background-color: #f9f9f9; border: 1px solid #c2c2c2; border-top: none; border-bottom-color: #f9f9f9;">
@isset($signature)
<p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 400; margin-bottom: 30px;"> <p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 400; margin-bottom: 30px;">
{{ ctrans('texts.client_email_company_contact_label') }} {!! nl2br($signature) !!}
</p> </p>
@endisset
@if(isset($company) && $company instanceof \App\Models\Company)
<p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 500; margin-bottom:0;"> <p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 500; margin-bottom:0;">
{{ $company->present()->name() }}</p> {{ $company->present()->name() }}</p>
<p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 400; margin-top: 5px;"> <p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 400; margin-top: 5px;">
<span>{{ $company->settings->phone }}</span> <span>{{ $company->settings->phone }}</span>
<span style="font-weight: 500"> {{ $company->settings->website }}</span> <span style="font-weight: 500"> {{ $company->settings->website }}</span>
</p> </p>
@endif
</div> </div>
</td> </td>
</tr> </tr>
@endif
<tr> <tr>
<td> <td>