<?php 
  use App\Models\Returnstatuses; 
  use App\Models\Option;
  use App\Models\Upload; 
  use App\Models\Emailtemplates; 
?>
<?php
    $header=Emailtemplates::where("type","forgot")->first();
    $header->image==""||null?$image=URL::asset("frontend/images/emails/newRegistration_header.jpg"):$image=$header->image;
    $footer=Emailtemplates::where("type","footerText")->first();
    $fooTwi=Emailtemplates::where("type","twitterStatus")->first();
    $fooFb=Emailtemplates::where("type","facebookStatus")->first();
    $fooGp=Emailtemplates::where("type","googleStatus")->first();
    $fooPt=Emailtemplates::where("type","pinterestStatus")->first();
 ?>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0" align="center" style="margin:0;padding:0;background-color:#dee0e2;border-collapse:collapse!important;height:100%!important;width:100%!important">
<tbody>
<tr>
<td valign="top" align="center" style="margin:0;padding:20px;border-top:4px solid #bbbbbb;height:100%!important;width:100%!important">
<br> 
<table cellspacing="0" cellpadding="0" border="0" style="width:600px;border:1px solid #bbbbbb;border-collapse:collapse!important">
<tbody>
<tr>
<td valign="top" align="center"> <a target="_blank" style="color:#eb4102;font-weight:normal;text-decoration:underline" href="#"> <img style="max-width:600px;border:0px;line-height:100%;outline:none;text-decoration:none;width:600px" src="{!! $image !!}" class="CToWUd"></a> </td>
</tr>
<tr>
<td valign="top" align="center"> 
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color:#fff;border-top:1px solid #ffffff;border-bottom:1px solid #cccccc;border-collapse:collapse!important">
<tbody>
<tr>
<td valign="top" style="color:#505050;font-family:Helvetica;line-height:150%;padding:20px;text-align:left">
<p style="font-size:11pt"><span style="color:#222222;font-family:Calibri,sans-serif;font-size:11pt">Dear&nbsp;Customer,</span>

<p style="margin:0in 0in 0.0001pt;color:#222222;font-family:Calibri,sans-serif;font-size:11pt;line-height:normal" class="MsoNormal">You have requested to have your password reset for your account at {!! Option::portalName() !!}.</p>
<br>

<p style="margin:0in 0in 0.0001pt;color:#222222;font-family:Calibri,sans-serif;font-size:11pt;line-height:normal" class="MsoNormal">Click the below button to reset your password.</p>

<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" style="font-size:14px;margin-top:10px;margin-bottom:12px;border-collapse:collapse!important">
<tbody>
<tr>
<td style="text-align:center;padding:0;margin:0">
<p style="padding:0px;margin:10px"><a target="_blank" style="padding:10px;font-family:Calibri,sans-serif;text-decoration:none;color:#ffffff;display:inline-block;width:160px;background-color:#CC0030" href="{!! $url !!}">RESET PASSWORD</a></p>
<br>
<div align="left" style="color:rgb(80,80,80);line-height:21px"><span style="color:rgb(34,34,34);font-family:Calibri,sans-serif;font-size:11pt">Best Regards,</span></div><div align="left"><span style="color:rgb(34,34,34);font-family:Calibri,sans-serif;font-size:11pt;text-align:center;line-height:150%">Your friends at {!! Option::portalName() !!}</span></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>

</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" align="center"> 

<table width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color:#fff;border-top:1px solid #ffffff;border-collapse:collapse!important">
<tbody>
<tr>
<td valign="top" style="color:#808080;font-family:Helvetica;font-size:10px;line-height:150%;text-align:center;padding:20px">

@if($fooTwi && $fooTwi->image =="active" )
<a target="_blank" style="color:#606060;font-weight:normal;text-decoration:underline" href="{!! Option::getvalue('social_twitterlink') !!}"><img style="border:0;min-height:auto;line-height:100%;outline:none;text-decoration:none" src="https://ci6.googleusercontent.com/proxy/9jvfbf98UZbwFB-4SnUzqEETNuMhwxmVv3fxKIfJzRgCR7ZsIDniu7isgWxzzYhXCMI8ZKSRPKvQWqA4Lm3R75sCSEI0SKAGe0M69ckUk4GsxWDr0co=s0-d-e1-ft#http://origin-st.redbus.in/Images/emailCampaign/twitter_icon.png" class="CToWUd"></a>&nbsp;&nbsp;&nbsp;
@endif

@if($fooFb && $fooFb->image =="active")
<a target="_blank" style="color:#606060;font-weight:normal;text-decoration:underline" href="{!! Option::getvalue('social_facebooklink') !!}"><img style="border:0;min-height:auto;line-height:100%;outline:none;text-decoration:none" src="https://ci3.googleusercontent.com/proxy/hSlQqJm5g5IPKxvAPRrAeUM7hcqcPl1_JiDVgVWHx_lTj03c-jke7ljgAWTKc_LE4UpHCAuhP9zEkMvz2dKeewQXbcW_9TaRnYFFD1UBRK1P=s0-d-e1-ft#http://origin-st.redbus.in/Images/emailCampaign/fb_icon.png" class="CToWUd"></a>&nbsp;&nbsp;&nbsp;
@endif

@if($fooGp  && $fooGp->image =="active")
<a target="_blank" style="color:#606060;font-weight:normal;text-decoration:underline" href="{!! Option::getvalue('social_googlepluslink') !!}"><img style="border:0;min-height:auto;line-height:100%;outline:none;text-decoration:none" src="https://ci4.googleusercontent.com/proxy/OFSG78COdqmHWb0kjlzUJCh-Y1RGi2bjI-M7x-eB1O9F5UOzxBMZPDz14lGpQ-bkoOQSo8gSqnRwmdoLwpMb1dn-fx0eTTQKpHFAaCj3aRFsgGaM=s0-d-e1-ft#http://origin-st.redbus.in/Images/emailCampaign/gplus_icon.png" class="CToWUd"></a>&nbsp;&nbsp;&nbsp;
@endif

@if($fooPt && $fooPt->image =="active")
<a target="_blank" style="color:#606060;font-weight:normal;text-decoration:underline" href="{!! Option::getvalue('social_pinterestlink') !!}"><img style="border:0;min-height:auto;line-height:100%;outline:none;text-decoration:none" src="https://ci3.googleusercontent.com/proxy/lnaGC5TOIWxnNPJv7IP4w6b5VzA45JKRkBEQV0YTdtiI3OPUMdb86edf6EhH0MhwyDKavlfrJcoMg-mlEEAj_KB8uVIc0U8NHl1A1iiPCSDK5yfmDdI=s0-d-e1-ft#http://origin-st.redbus.in/Images/emailCampaign/youtube_icon.png" class="CToWUd"></a>
@endif
&nbsp;<br><span style="color:#505050;font-size:12px;line-height:21px">{!! $footer->image !!}</td>
</tr>
</tbody>
</table>

</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>