Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/inquery_contact.blade.php |
@extends('frontend.layouts.app')
@push('css')
@endpush
@section('content')
<div class="container">
<div class="row">
<div class="main-container">
<h2 class="c-heading main-heading multi-heading">{{ translate('Connect With') }} <span>{{ translate($user->company->name) }}</span> {{ translate('About') }}</h2>
<div class="col-xs-12 col-sm-12 col-md-8 left-container">
<div class="inline-blocks">
<div class="left-container">
<img src="{{asset('storage/images/user/avatar/'.$user->company->image.'')}}" alt="{{$user->title}}">
</div>
<div class="right-container">
<h4 class="c-heading heading-rfq">{{ translate($user->name) }}</h4>
<h6 class="sub-heading"> {{ translate($user->company->name) }} </h6>
<h6 class="sub-heading"><i class="fi fi fi-{{ strtolower($user->country->iso) }}"> </i>
{{ translate($user->country->nicename) }}
</h6>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 left-container fleft m-auto">
<div class="form-container">
<form method="POST" action="{{route('company.inquery', $user->username)}}" accept-charset="UTF-8" id="rfq-form" class="uploader" enctype="multipart/form-data">
@csrf
<div class="form-group">
<input class="form-control p-track" placeholder="Tell us what you want to buy *" id="want_buy" name="subject" type="text" value="@if(!empty($title)) Contacting About {{$title}} @endif" required>
</div>
<div class="form-group">
<textarea class="form-control rfq-txt p-track" id="buyoffer_description" name="details" cols="50" rows="10" required placeholder="Enter Your Description"></textarea>
</div>
<div class="row">
<div class="col-lg-6 mb-2">
<label>{{ translate('name') }}</label>
<input type="text" class="head-field" name="name" placeholder="Enter Your Name" required="required" value="{{ Auth::user()->name }}" required>
</div>
<div class="col-lg-6 mb-2 ">
<label>{{ translate('Email') }}</label>
<input type="email" class="head-field" name="email" placeholder="Enter Your Email" required="required" value="{{ Auth::user()->email }}" required>
</div>
@php
$my_ip = ip_country('103.122.29.214')->country_code;
$my_country = \App\Models\Country::where('iso', $my_ip)->first();
$countrylist = \App\Models\Country::all();
@endphp
<div class="col-lg-6 mb-2">
<label>{{ translate('Country') }}</label>
<select class="head-field country_id" name="country_id" required>
<option value="">Choose Country</option>
@foreach($countrylist as $country)
<option {{$country->id == Auth::user()->country_id ? "selected":"" }} value="{{$country->id}}" @if($country->id == $my_country->id) selected @endif>{{$country->name}}</option>
@endforeach
</select>
</div>
<div class="col-lg-6 mb-2 ">
<label>{{ translate('Phone') }}</label>
<!--<input type="tel" class="head-field regphone" name="phone" placeholder="{{ translate('+00') }}" required="required" value="+{{$my_country->phonecode}}" required> -->
<input type="tel" class="head-field regphone" name="phone" placeholder="{{ translate('+00') }}" required="required" value="{{ Auth::user()->phone }}" required>
<input id="phone" type='hidden'>
</div>
</div>
<div class="clearfix"></div>
<div class="clearfix"></div>
<button type="submit" class="btn btn-post-rfq">{{ translate('Submit') }}</button>
</form>
</div>
</div>
</div>
</div>
</div>
@stop
@push('script')
@endpush