<?php 
  use App\Models\Emailtemplates; 
  use App\Models\Upload;  
  use App\Models\Option; 
?>
<?php
    $header = Emailtemplates::where("type","admin")->first();
?>
@if(Option::getvalue('stickyHeaderLogo') != "")
    <?php $darkLogo = Upload::getimageurl(Option::getvalue('stickyHeaderLogo')); ?>
@else
    <?php $darkLogo = 'frontend/img/logo-dark.png'; ?>
@endif
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" style="max-width:600px;padding:5px;font-family:Calibri,sans-serif;"> 
    <tbody>
    <tr> 
     <td align="left" style="padding-bottom:10px"><a style="outline:none;border:0px" href="#" title="" target="_blank"><img border="0" align="absbottom" alt="" style="display:block" src="{!! $darkLogo !!}" width="200px" height="35px"></a> </td> 
    </tr> 
    @if($header && $header->image != "")
        <tr> 
            <td> <a style="outline:none;border:0px" href="#" title="" target="_blank"><img border="0" align="absbottom" alt="" style="display:block" src="{!! $header->image !!}" class="CToWUd"></a> </td> 
        </tr> 
    @endif
    <tr> 
     <td style="border-left:1px solid #ddd;border-right:1px solid #ddd;font-weight:bold;color:#333;text-align:center;padding-top:20px;padding-bottom:20px;font-size:18px;padding-left:15px;padding-right:15px">Hello {!! $email !!}</td> 
    </tr> 
    <tr> 
    <td style="border-left:1px solid #ddd;border-right:1px solid #ddd;color:#333;text-align:left;line-height:18px;padding-bottom:20px;font-size:14px;padding-left:15px;padding-right:15px"> Congratulations!! You have been registered with Advertising Club Madras as an Admin<br><br>
     Please use the below credential to access admin console<br><br>
     <b>Email:</b>  {!! $email !!}<br>
     <b>Password:</b>  {!! $password !!}
     </td> 
    </tr> 
    <tr> 
     <td align="center" style="border-left:1px solid #ddd;border-right:1px solid #ddd;padding-bottom:30px;padding-top:15px;padding-left:15px;"> <a href="{!! URL::to('admin') !!}" style="font-size:18px;padding:5px 10px;background:#D71921;text-decoration:none;color:#fff;" target="_blank">Login to your Account</a></td> 
    </tr>
    <td style="border-left:1px solid #ddd;border-right:1px solid #ddd;color:#333;text-align:left;line-height:18px;padding-bottom:20px;font-size:14px;padding-left:15px;padding-right:15px"> Best Wishes,<br><b>{!! Emailtemplates::getemailtemplates("regards") !!}</b></td> 
    </tr>
    <tr> 
     <td bgcolor="#E2E2E2" style="font-size:13px;text-align:center;color:#000;padding-left:20px;padding-top:10px;padding-bottom:10px">{!! Emailtemplates::getemailtemplates("footerText") !!}<a href="https://www.adclubmadras.com/" target="_blank">Advertising Club Madras</a> </td> 
    </tr> 
  </tbody>
</table>