<div style="border-bottom-left-radius: 0;border-bottom-right-radius: 0;border: 1px solid #d6d6d6;margin-bottom: 20px;background-color: #fff;border-radius: 4px;-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);box-shadow: 0 1px 1px rgba(0,0,0,.05);">
<div style="background-color: #0057b2;padding: 10px 15px;border-bottom: 1px solid transparent;border-top-left-radius: 3px;border-top-right-radius: 3px;">
<div><img src="{{url('images/showcaseemaillogo.png')}}" width="118px" height="60px" /></div>
</div>
<h1 style="color:#0da8e0;padding-left: 15px; font-weight:bold; font-size:16px;">Hello {{$name}} !</h1>
<h3 style="color:#313131;padding-left: 15px;">Job Specification Form Details from {{$firstname}}!</h3> 
<span>-------------------------------------------------------------------</span>
<table style="color:#313131;padding-left: 15px;">
    <tr>
        <td><strong>Purpose:</strong></td><td>{{$data['title']}}</td>
    </tr>
    <tr>
        <td><strong>Description:</strong></td><td>{{$data['msg_content']}}</td>
    </tr>
    <tr><td colspan="2"><span>-------------------------------------------------------------------</span></td></tr>
    <tr>
        <td colspan="2"><h2>Basic Information</h2></td> 
    </tr>
    @if($job_spec->title!="")
    <tr>
        <td><strong>Title:</strong></td><td>{{$job_spec->title}}</td>
    </tr>
    @endif
    @if($job_spec->company_name!="")
    <tr>
        <td><strong>Company Name:</strong></td><td>{{$job_spec->company_name}}</td>
    </tr>
    @endif
    @if($job_spec->link_to_website!="")
    <tr>
        <td><strong>Link to Website:</strong></td><td>{{$job_spec->link_to_website}}</td>
    </tr>
    @endif
    @if($job_spec->website_link!="")
    <tr>
        <td><strong>Apply Website Link:</strong></td><td>{{$job_spec->website_link}}</td>
    </tr>
    @endif
    @if($job_spec->industry!="")
     <tr>
        <td><strong>Industrys:</strong></td><td>
     <?php 
    $industry = explode(",", $job_spec->industry);  ?>
    @foreach($industry_data as $ind)
    @if(in_array($ind->id, $industry))
   {{$ind->name.', '}}
    @endif
    @endforeach
    </td>
    </tr>
    @endif
    
     @if($job_spec->function!="")
     <tr>
     <td><strong>Functions:</strong></td><td>
    <?php 
    $function = explode(",", $job_spec->function);  ?>
    @foreach($roles_data as $r)
    @if(in_array($r->id, $function)) {{$r->name.', '}}
    @endif
    @endforeach
    </td>
    </tr>
    @endif
    @if($job_spec->company_desc!="")
    <?php $company_desc=str_replace("<p>","","$job_spec->company_desc");
          $company_desc=str_replace("</p>","",$company_desc);?>
    <tr>
        <td><strong>Company description:</strong></td><td>{{$company_desc}}</td>
    </tr>
    @endif
    @if($job_spec->position_desc!="")
    <?php $position_desc=str_replace("<p>","","$job_spec->position_desc");
          $position_desc=str_replace("</p>","","$position_desc");?>
    <tr>
        <td><strong>Position description:</strong></td><td>{{$position_desc}}</td>
    </tr>
    @endif
    @if($country_name->name!="")
    <tr>
        <td><strong>Country:</strong></td><td>{{$country_name->name}}</td>
    </tr>
    @endif
    @if($job_spec->province!="")
    <tr>
        <td><strong>Province:</strong></td><td>{{$job_spec->province}}</td>
    </tr>
    @endif
    @if($state_name->name!="")
    <tr>
        <td><strong>State:</strong></td><td>{{$state_name->name}}</td>
    </tr>
    @endif
     @if($job_spec->city!="")
    <tr>
        <td><strong>City:</strong></td><td>{{$job_spec->city}}</td>
    </tr>
    @endif
    
     <tr>
        <td colspan="2"><h2>Compensation</h2></td> 
    </tr>
    
    @if($job_spec->sal_range!="" && $job_spec->hide_sal==0)
    <tr>
        <td><strong>Base Salary Range:</strong></td><td>{{$job_spec->sal_range}}</td>
    </tr>
    @endif
     @if($job_spec->additional_elements!="")
      <?php $additional_elements=str_replace("<p>","","$job_spec->additional_elements");
          $additional_elements=str_replace("</p>","",$additional_elements);?>
    <tr>
        <td><strong>Additional Elements:</strong></td><td>{{$additional_elements}}</td>
    </tr>
    @endif
    <tr>
        <td colspan="2"><h2>Preferred Candidate</h2></td> 
    </tr>
      @if($job_spec->skill_level!="")
     <?php  $array = explode(",", $job_spec->skill_level);   
     ?>
    <tr>
        <td><strong>Likely Skill Level:</strong></td><td>@for($i = 0; $i < count($array); $i++){{ $array[$i].', ' }}@endfor</td>
    </tr>
    @endif
    @if($job_spec->jobtype!="")
    <tr>
        <td><strong>Job Type:</strong></td><td>{{ $job_spec->jobtype }}</td>
    </tr>
    @endif
     @if($job_spec->experience!="")
      <?php $experience=str_replace("<p>","","$job_spec->experience");
          $experience=str_replace("</p>","",$experience);?>
    <tr>
        <td><strong>Experience:</strong></td><td>{{ $experience }}</td>
    </tr>
    @endif
     @if($job_spec->qualification!="")
      <?php $qualification=str_replace("<p>","","$job_spec->qualification");
          $qualification=str_replace("</p>","",$qualification);?>
    <tr>
        <td><strong>Qualification:</strong></td><td>{{ $qualification }}</td>
    </tr>
    @endif
    
    <tr>
        <td colspan="2"><h2>Contact Info</h2></td> 
    </tr>
    @if($job_spec->anonymous!="")
    <tr>
        <td><strong>Keep anonymous:</strong></td><td>@if($job_spec->anonymous==0){{'No'}}@else{{'Yes'}}@endif</td>
    </tr>
    @endif
    @if($job_spec->username!="")
    <tr>
        <td><strong>Name:</strong></td><td>{{$job_spec->username}}</td>
    </tr>
    @endif
    @if($job_spec->email!="")
    <tr>
        <td><strong>Email:</strong></td><td>{{$job_spec->email}}</td>
    </tr>
    @endif
    @if($job_spec->apply!="")
    <tr>
        <td><strong>Apply to:</strong></td><td>{{$job_spec->apply}}</td>
    </tr>
    @endif
    @if($job_spec->contact_company!="")
    <tr>
        <td><strong>Company Name:</strong></td><td>{{$job_spec->contact_company}}</td>
    </tr>
    @endif
    @if($job_spec->street!="")
    <tr>
        <td><strong>Street:</strong></td><td>{{$job_spec->street}}</td>
    </tr>
    @endif
    @if($job_spec->contact_city!="")
    <tr>
        <td><strong>City:</strong></td><td>{{$job_spec->contact_city}}</td>
    </tr>
    @endif
     @if($job_spec->contact_state!="")
    <tr>
        <td><strong>State:</strong></td><td>{{$contact_state->name}}</td>
    </tr>
    @endif
     @if($job_spec->contact_country!="")
    <tr>
        <td><strong>Country:</strong></td><td>{{$contact_country->name}}</td>
    </tr>
    @endif
     
    @if($job_spec->contact_province!="")
    <tr>
        <td><strong>Province:</strong></td><td>{{$job_spec->contact_province}}</td>
    </tr>
    @endif
   
    @if($job_spec->phone!="")
    <tr>
        <td><strong>Phone Number:</strong></td><td>{{$job_spec->phone}}</td>
    </tr>
    @endif
     
    @if($job_spec->fax!="")
    <tr>
        <td><strong>Fax Number:</strong></td><td>{{$job_spec->fax}}</td>
    </tr>
    @endif
    
    @if($job_spec->comment!="")
    <tr>
        <td><strong>Comment:</strong></td><td>{{$job_spec->comment}}</td>
    </tr>
    @endif
</table>

<br/>
<p style="padding-left: 15px; color:#313131">Thank you,
<br />
Sanskar Team.</p>
</div>