Hello {{$name}}!
Job Specification Form Details from {{$firstname}}!
-------------------------------------------------------------------
Purpose : {{$data['title']}}
Description : {{$data['msg_content']}}
-------------------------------------------------------------------
Basic Information
 
    @if($job_spec->title!="")
        Title                 :          {{$job_spec->title}}
    @endif
    
    @if($job_spec->company_name!="")
        Company Name          :          {{$job_spec->company_name}}
    @endif
    
    @if($job_spec->link_to_website!="")
        Link to Website       :          {{$job_spec->link_to_website}}
    @endif
    
    @if($job_spec->website_link!="")
        Apply Website Link    :          {{$job_spec->website_link}}
    @endif
    
    @if($job_spec->industry!="")
        Industrys             :           <?php $industry = explode(",", $job_spec->industry);  ?>
    @foreach($industry_data as $ind)@if(in_array($ind->id, $industry)){{$ind->name.', '}} @endif @endforeach 
    @endif
    
    @if($job_spec->function!="")
        Functions             :          <?php $function = explode(",", $job_spec->function);  ?>
    @foreach($roles_data as $r)@if(in_array($r->id, $function)) {{$r->name.', '}}@endif @endforeach
    @endif
    
    @if($job_spec->company_desc!="")
    <?php $company_desc=str_replace("<p>","","$job_spec->company_desc");
          $company_desc=str_replace("</p>","",$company_desc);?>
        Company description   :           {{$company_desc}}
    @endif
    
    @if($job_spec->position_desc!="")
    <?php $position_desc=str_replace("<p>","","$job_spec->position_desc");
          $position_desc=str_replace("</p>","",$position_desc);?>
         Position description :           {{$position_desc}}
    @endif
    
    @if($country_name->name!="")
        Country               :           {{$country_name->name}}
    @endif
    
    @if($job_spec->province!="")
        Province              :           {{$job_spec->province}}
    @endif
    
    @if($state_name->name!="")
        State                 :           {{$state_name->name}}
    @endif
    
     @if($job_spec->city!="")
        City                   :          {{$job_spec->city}}
    @endif
    
Compensation 
       
    @if($job_spec->sal_range!="" && $job_spec->hide_sal==0)
        Base Salary Range     :           {{$job_spec->sal_range}}
    @endif
    
     @if($job_spec->additional_elements!="")
      <?php $additional_elements=str_replace("<p>","","$job_spec->additional_elements");
          $additional_elements=str_replace("</p>","",$additional_elements);?>
        Additional Elements   :            {{$additional_elements}}
    @endif
    
        Preferred Candidate 
   
    @if($job_spec->skill_level!="")
     <?php  $array = explode(",", $job_spec->skill_level); ?>
        Likely Skill Level    :            @for($i = 0; $i < count($array); $i++){{ $array[$i].', ' }}@endfor
    @endif
    
    @if($job_spec->jobtype!="")
        Job Type              :            {{ $job_spec->jobtype }}
    @endif
    
     @if($job_spec->experience!="")
      <?php $experience=str_replace("<p>","","$job_spec->experience");
          $experience=str_replace("</p>","",$experience);?>
        Experience            :            {{ $experience }}
    @endif
    
     @if($job_spec->qualification!="")
      <?php $qualification=str_replace("<p>","","$job_spec->qualification");
          $qualification=str_replace("</p>","",$qualification);?>
        Qualification          :           {{ $qualification }}
    @endif
    
Contact Info
   
    @if($job_spec->anonymous!="")
        Keep anonymous         :            @if($job_spec->anonymous==0){{'No'}}@else{{'Yes'}}@endif
    @endif
    
    @if($job_spec->username!="")
         Name                  :            {{$job_spec->username}}
    @endif
    
    @if($job_spec->email!="")
        Email                  :           {{$job_spec->email}}
    @endif
    
    @if($job_spec->apply!="")
        Apply to               :            {{$job_spec->apply}}
    @endif
    
    @if($job_spec->contact_company!="")
        Company Name           :            {{$job_spec->contact_company}}
    @endif
    
    @if($job_spec->street!="")
        Street                 :             {{$job_spec->street}}
    @endif
    
    @if($job_spec->contact_city!="")
         City                  :             {{$job_spec->contact_city}}
    @endif
    
     @if($job_spec->contact_state!="")
        State                  :             {{$contact_state->name}}
    @endif
    
    @if($job_spec->contact_country!="")
        Country                :            {{$contact_country->name}}
    @endif
     
    @if($job_spec->contact_province!="")
        Province               :            {{$job_spec->contact_province}}
    @endif
   
    @if($job_spec->phone!="")
        Phone Number           :           {{$job_spec->phone}}
    @endif
     
    @if($job_spec->fax!="")
        Fax Number             :            {{$job_spec->fax}}
    @endif
    
    @if($job_spec->comment!="")
        Comment                :             {{$job_spec->comment}}
    @endif
