@extends('main')

@section('css')
<link href="{{ asset('/css/bootstrapValidator.min.css')}}" rel="stylesheet">
@endsection
@section('content')
<section class="main_content">
    <div class="container">
        <ol class="breadcrumb cust-breadcrumb">
              <li><a href="{{url('/')}}">Home</a></li>
              <li><a href="{{url('/search')}}">Search</a></li>
              <li class="active">Job Specification</li>
            </ol>
      <div class="row talent_home">
        @include("left_menu")
        <div class="col-md-9 col-sm-8 inqiry-req-page"> 
          <h1 class="heading pull-left">Job Specification</h1>
          <div class="clearfix"></div>
          <div class="row talent_data search_result" id="search_result_data">
              <form name="shareLinkForm" id="jobspec_form" method="post" >
               <input type="hidden" name="_token" value="{{ csrf_token() }}">
               <input type="hidden" name="send_request" value="1">
              @if(count($share_inquire))
                    @foreach($share_inquire as $pro)
                      <div class="col-md-4 col-sm-4 enq-req-block">
                      <input type="hidden" id="profileList" name="profileList[]" value="{{$pro->user_id}}">
                             <a href="{{url('profiles/'.$pro->id)}}">
                                                @if($pro->profile_image && is_file('uploads/profile_images/'.$pro->profile_image))
                              <img class="img-responsive img-circle inq-req-img" src="{{url('uploads/profile_images/'.$pro->profile_image)}}" alt=""/>
                            @else                    
                              <img class="img-responsive img-circle inq-req-img" src="{{url('uploads/profile_images/default-profile.png')}}" alt=""/>
                            @endif
                            <h4>{{$pro->name}}</h4>
                          <div class="clearfix"></div>
                        </a>
                      
                    </div>
                    @endforeach
             
            <div class="clearfix"></div>
			 <div class="row">
			<div class="col-sm-12">
			<div class="inq-req-btm-form form-horizontal">
            
            <div class="form-group">
              <lable class="col-sm-5 col-md-3">Job Spec Type<span class="red-cl">*</span></lable>
              
             <div class="col-sm-7 col-md-7">
                <select class="form-control" name="type_job" id="type_job">
                  <option value="">Create Job Spec</option>
                  @foreach($jobspec as $job):
                  <option value="{{$job->id}}">{{$job->title}}</option>
                  @endforeach
                </select>
              </div>
             
            </div>
            <div class="clearfix"></div>
            
            <div class="form-group">
              <lable class="col-sm-5 col-md-3">Purpose<span class="red-cl">*</span></lable>
              
             <div class="col-sm-7 col-md-7">
                  <input type="text" name="title" value="" id="title" class="form-control"> 
              </div>
           
            </div>
            <div class="clearfix"></div>
            
            <div class="form-group">
              <lable class="col-sm-5 col-md-3">Describe Job Spec</lable>
              
                  <div class="col-sm-7 col-md-7">
                  <textarea class="form-control" name="desc_jobspec"></textarea>
				   <button type="submit" class="btn subt-req-eng-btn" name="jobspec"  value="sendjob">Send Job Spec</button>  
                  </div>            
                
           </div>
            
            <div class="clearfix"></div>
            <div class="form-group"></div>
           
			</div>
			</div>
			</div>
          @else
            <div class="col-md-6 txt-red">
              Required profiles not found
            </div>  
          @endif  
          </form>
              </div> 
           </div>
        </div>
      </div>
    
  </section> 

@endsection
@section('js')
<script src="{{ asset('js/share_js.js')}}"></script>
<script src="{{ asset('js/bootstrapValidator.min.js')}}"></script>
<script src="{{ asset('js/maskedinput/jquery.maskedinput.min.js')}}"></script>
<script src="{{ asset('js/validation.js')}}"></script>
<script src="{{ asset('js/bootbox.js')}}"></script>
@endsection
