@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">Inquiries</li>
            </ol>
      <div class="row talent_home">
        @include("left_menu")
        <div class="col-md-9 col-sm-8 inqiry-req-page"> 
          <h1 class="heading">Inquire Request</h1>
          <div class="clearfix"></div>
          <div class="row talent_data search_result" id="search_result_data">
              <form name="shareLinkForm" id="inquiry_form" method="post" action="{{'inquiries'}}">
           <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" >Name of Company<span class="red-cl">*</span></lable>
                <div class="col-sm-7 col-md-7"><input type="text" class="form-control" name="company" id="company" value="{{$comp_name->name}}"></div>
            </div>
            <div class="clearfix"></div>
            
            <div class="form-group">
              <lable class="col-sm-5 col-md-3">Type Inquiry<span class="red-cl">*</span></lable>
                <div class="col-sm-7 col-md-7"><select class="form-control" name="type_inq" id="type_inq">
                  <option value="">Type of Inquiry</option>
                  <option value="Need Information About Company">Need Information About Company</option>
                  <option value="Need More Information About Product/Services">Need More Information About Product/Services</option>
                  <option value="Want to Schedule a meeting or call or Other">Want to Schedule a meeting or call or Other</option>
                </select></div>
            </div>
            
            <div class="clearfix"></div>
            
            <div class="form-group">
              <lable class="col-sm-5 col-md-3">Describe Inquiry</lable>
                 <div class="col-sm-7 col-md-7"> <textarea class="form-control" name="desc_inquiry"></textarea>
				 <button type="submit" class="btn subt-req-eng-btn" name="enquiry"  value="enquiry">Submit Enquiry</button> 
				 </div>
           </div>
            
            <div class="clearfix"></div>
            <div class="form-group"></div>
        
			<div class="clearfix"></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
