File: D:/HostingSpaces/Anvil/anvil-industries.com/resources/views/signature/template.blade.php
@php
$resourcePath = app()->environment('local') ? '/' : 'https://anvil-industries.nl/';
$greeting = !empty($greeting) ? $greeting : 'Met vriendelijke groet,';
$color = '#0052ED';
$website = 'anvil-industries.nl';
$linkedin = '';
$facebook = '';
$street = 'Leenderweg 180';
$postal = '5555 CJ Valkenswaard';
$country = 'Nederland';
$logoWidth = 180;
switch ($template){
case 'anvil':
$linkedin = 'https://www.linkedin.com/company/anvil-industries-holding-b-v-/';
break;
case 'bkl':
$color = '#F9A01B';
$website = 'bkl.nl';
$linkedin = 'https://www.linkedin.com/company/bkl-engineering-b-v-/';
$street = 'Collse Heide 1';
$postal = '5674 VM Nuenen';
break;
case 'contour':
$color = '#F6871F';
$website = 'contour.eu';
$linkedin = 'https://www.linkedin.com/company/contour-b-v-/';
$facebook = 'https://www.facebook.com/Contour.NL';
$street = 'Industrieweg 20';
$postal = 'NL-7102DZ Winterswijk';
break;
case 'jansen':
$color = '#357AD5';
$website = 'jansenmachiningtechnology.nl';
$linkedin = 'https://www.linkedin.com/company/jansen-machining-technology/';
$logoWidth = 220;
break;
case 'rols':
$color = '#FFC800';
$website = 'rols.nl';
$linkedin = 'https://www.linkedin.com/company/rols-machine-onderdelen-b.v./';
$street = 'Spaarpot 113';
$postal = '5667 KW Geldrop';
$logoWidth = 160;
break;
case 'job':
$color = '#339aff';
$website = 'jobprecision.nl';
$linkedin = 'https://www.linkedin.com/company/job-precision-bv/';
$facebook = 'https://www.facebook.com/Job-Precision-BV-949008638496358/';
$logoWidth = 162;
break;
}
@endphp
<p style="font-family: Calibri, Avenir, sans-serif; font-size: 16px; line-height: 20px; color: #727D84; margin:0;">{{ $greeting }}</p>
<p style="font-size: 16px; line-height: 20px; margin:0;"> </p>
<table width="670" style="font-family: Calibri, Avenir, sans-serif;" cellpadding="0" cellspacing="0">
<tr>
<td>
<p style="display: block; margin: 0;">
<span style="font-family: Calibri, Avenir, sans-serif; font-size: 22px; line-height: 26px; color: {{ $color }}; margin:0; font-weight:bold;">{{ $name }}</span><br/>
<span style="font-family: Calibri, Avenir, sans-serif; font-size: 17px; line-height: 22px; color: #727D84; margin:0;">{{ $function }}</span><br/>
@if($size === 'default')
<span style="font-size: 7px; line-height: 12px; margin:0;"> </span><br/>
@endif
</p>
@if($size === 'default')
<table width="670" style="font-family: Calibri, Avenir, sans-serif;" cellpadding="0" cellspacing="0">
<tr>
<td width="30">
<span style="display: inline-block; width: 14px; text-align: center; font-family: Calibri, Avenir, sans-serif; font-size: 14px; line-height: 18px; font-weight: bold; color: {{ $color }}; margin:0;">T</span>
</td>
<td width="640">
<span style="font-family: Calibri, Avenir, sans-serif; font-size: 15px; line-height: 24px; color: #1E1E2D;">{{ $phone }}</span>
</td>
</tr>
@if(!empty($mobile))
<tr>
<td width="30">
<span style="display: inline-block; width: 14px; text-align: center; font-family: Calibri, Avenir, sans-serif; font-size: 14px; line-height: 18px; font-weight: bold; color: {{ $color }}; margin:0;">M</span>
</td>
<td width="640">
<span style="font-family: Calibri, Avenir, sans-serif; font-size: 15px; line-height: 24px; color: #1E1E2D;">{{ $mobile }}</span>
</td>
</tr>
@endif
<tr>
<td width="30">
<span style="display: inline-block; width: 14px; text-align: center; font-family: Calibri, Avenir, sans-serif; font-size: 14px; line-height: 18px; font-weight: bold; color: {{ $color }}; margin:0;">E</span>
</td>
<td width="640">
<span style="font-family: Calibri, Avenir, sans-serif; font-size: 15px; line-height: 24px; color: #1E1E2D;">{{ $email }}</span>
</td>
</tr>
<tr>
<td width="30">
<span style="display: inline-block; width: 14px; text-align: center; font-family: Calibri, Avenir, sans-serif; font-size: 14px; line-height: 18px; font-weight: bold; color: {{ $color }}; margin:0;">W</span>
</td>
<td width="640">
<span style="font-family: Calibri, Avenir, sans-serif; font-size: 15px; line-height: 24px; color: #1E1E2D;">{{ $website }}</span>
</td>
</tr>
</table>
@endif
</td>
</tr>
<tr>
<td height="28" width="670" style="width: 670px; height: 28px; font-size: 0px; line-height: 0px;"> </td>
</tr>
<tr>
<td width="670" style="width: 670px; font-size: 0px; line-height: 0px;">
<img alt="logo" src="{{ $resourcePath }}img/email/{{ $template }}.png" width="{{ $logoWidth }}" />
</td>
</tr>
@if($template !== 'anvil')
<tr>
<td height="16" width="670" style="width: 670px; height: 16px; font-size: 0px; line-height: 0px;"> </td>
</tr>
<tr>
<td width="670" style="width: 670px; font-size: 0px; line-height: 0px;">
<img alt="anvil member" src="{{ $resourcePath }}img/email/anvil-member.png" width="200" />
</td>
</tr>
@endif
@if($size === 'default')
<tr>
<td height="24" width="670" style="width: 670px; height: 24px; font-size: 0px; line-height: 0px;"> </td>
</tr>
<tr>
<td>
<table width="670" style="font-family: Calibri, Avenir, sans-serif;" cellpadding="0" cellspacing="0">
<tr>
<td width="560" valign="bottom">
<p style="font-family: Calibri, Avenir, sans-serif; font-size: 15px; line-height: 24px; color: #727D84; margin: 0;">
{{ $street }}<br/>
{{ $postal }}<br/>
{{ $country }}
</p>
@if(!empty($note))
<span style="font-size: 18px; line-height: 32px; margin:0;"> </span><br/>
<p style="font-family: Calibri, Avenir, sans-serif; font-size: 15px; line-height: 24px; font-style: italic; color: {{ $color }}; margin: 0;">
{!! $note !!}
</p>
@endif
<span style="font-size: 18px; line-height: 24px; margin:0;"> </span><br/>
@if(!empty($linkedin))
<a style="text-decoration: none; display: inline-block; width: 24px; height: 24px;" target="_blank" href="{{ $linkedin }}">
<img alt="social media logo" src="{{ $resourcePath }}img/email/linkedin.png" width="24" height="24"/>
</a>
@endif
@if(!empty($linkedin) && !empty($facebook))
<span style="display: inline-block; width: 10px; font-size: 7px; line-height: 12px; margin:0;"> </span>
@endif
@if(!empty($facebook))
<a style="text-decoration: none; display: inline-block; width: 24px; height: 24px;" target="_blank" href="{{ $facebook }}">
<img alt="social media logo" src="{{ $resourcePath }}img/email/facebook.png" width="24" height="24"/>
</a>
@endif
<br/>
<img alt="shadow" width="560" src="{{ $resourcePath }}img/email/footer_shadow.png">
</td>
<td width="110" valign="bottom">
<img alt="corner" src="{{ $resourcePath }}img/email/{{ $template }}_corner.png" width="110" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" width="560" style="width: 560px; height: 25px; font-size: 0px; line-height: 0px;"> </td>
</tr>
@endif
</table>