Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/postrfq.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('Tell suppliers') }} <span>{{ translate('what you need') }}</span></h2>
<div class="col-xs-12 col-sm-12 col-md-12 left-container fleft">
<h4 class="c-heading heading-rfq">{{ translate('Complete Your RFQ') }}</h4>
<h6 class="sub-heading">{{ translate('The more specific information, the more accurately we can match your request to the right supplier.') }}</h6>
<div class="form-container">
<form method="POST" action="{{route('rfq')}}" 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="{{ translate('Industry name *') }}" id="buyoffer_name" name="industry_name" type="text" required>
</div>
<div class="form-group">
<input class="form-control p-track" placeholder="{{ translate('Tell us what you want to buy *') }}" id="want_buy" name="want_buy" type="text" required>
</div>
<div class="form-group">
@php
$category = \App\Models\Category::where('parent_id', 0)->where('status', 1)->get();
$categories = App\Models\User::groupBy('category_id')
->select('category_id')
->get()->toArray();
$sub_categories = [];
foreach($categories as $category){
$sub_categories[] = \App\Models\Category::where('parent_id',$category['category_id'])->get()->toArray();
}
@endphp
<select class="form-control" name="category_id">
<option value="">{{ translate('Select a Category *') }}</option>
@foreach ($sub_categories as $catogories)
@foreach($catogories as $cat)
<option value="{{ $cat['id'] }}">{{ $cat['name'] }}</option>
@endforeach
@endforeach
</select>
</div>
<div class="form-group">
<textarea class="form-control rfq-txt p-track" placeholder="Enter your description" id="buyoffer_description" name="details" cols="50" rows="10" required></textarea>
</div>
<div class="form-group l-r-forms">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-8 fleft">
<input class="form-control p-track" placeholder="{{ translate('Enter Quantity Required *') }}" id="quantity" name="qty" type="text" required>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 fleft" required>
<select class="form-control p-track" id="quantity_unit" name="unit">
<option value="" selected="selected">{{ translate('Select Unit *') }}</option>
@foreach ($units as $unit)
{!! $unit !!} @endforeach
</select>
</div>
</div>
<div class="clearfix"></div>
<div class="form-group">
<select class="form-control p-track" id="frequency" name="frequency" required>
@foreach ($validities as $item)
{!! $item !!}
@endforeach
</select>
</div>
<div class="form-group">
<div class="file-upload-container max__width__230px">
<input id="file-upload" class="p-track" type="file" name="image" required>
<label for="file-upload" id="file-drag">
<img id="file-image" src="#" alt="Preview" class="hidden">
<div id="start">
<i class="fa fa-download" aria-hidden="true"></i>
<div>{{ translate('Select a image or drag here') }}</div>
<div id="notimage" class="hidden">{{ translate('Please select an image') }}</div>
<p id="file-upload-btn" class="btn btn-primary btn-file-upload-p">
<span class="upload-btn-icon">{{ translate('Packages') }}+</span>
<span
class="upload-btn-text">{{ translate('Upload Attachment') }}</span></p>
</div>
<div id="response" class="hidden">
<div id="messages"></div>
</div>
</label>
</div>
</div>
<div class="clearfix"></div>
<h4 class="c-heading heading-rfq margin__bottom__15px">{{ translate('Provide your contact details') }}</h4>
<div class="form-group l-r-l-forms margin__bottom__40px">
<div class="col-xs-12 col-sm-4 fleft">
<input class="form-control p-track" placeholder="{{ translate('Enter Name *') }}" id="full_name" name="name" type="text" required>
</div>
<div class="col-xs-12 col-sm-4 fleft">
<input class="form-control p-track" placeholder="{{ translate('Enter Email *') }}" id="user_email" name="email" type="email" required>
</div>
<div class="col-xs-12 col-sm-4 fleft">
<input class="form-control p-track" placeholder="{{ translate('Enter Phone Number *') }}" id="user_phone" required name="number" type="tel" required>
</div>
</div>
<h4 class="c-heading heading-rfq">{{ translate('Other Requirements') }}</h4>
<div class="form-group">
<label>{{ translate('Preffered Payment Methods:') }}</label>
<div class="control-group">
<label for="pm1" class="control control--checkbox pm-checkbox">{{ translate('T/T') }}
<input class="form-control field p-track" id="pm1" data-parent="payment_id" name="p_methods[]" type="checkbox" value="T/T">
<div class="control__indicator"></div>
</label>
<label for="pm2" class="control control--checkbox pm-checkbox">{{ translate('L/C') }}
<input class="form-control field p-track" id="pm2" data-parent="payment_id" name="p_methods[]" type="checkbox" value="L/C">
<div class="control__indicator"></div>
</label>
<label for="pm3" class="control control--checkbox pm-checkbox">{{ translate('D/A') }}
<input class="form-control field p-track" id="pm3" data-parent="payment_id" name="p_methods[]" type="checkbox" value="D/A">
<div class="control__indicator"></div>
</label>
<label for="pm4" class="control control--checkbox pm-checkbox">{{ translate('D/P') }}
<input class="form-control field p-track" id="pm4" data-parent="payment_id" name="p_methods[]" type="checkbox" value="D/P">
<div class="control__indicator"></div>
</label>
<label for="pm5" class="control control--checkbox pm-checkbox">{{ translate('Western Union') }}
<input class="form-control field p-track" id="pm5" data-parent="payment_id" name="p_methods[]" type="checkbox" value="Western Union" >
<div class="control__indicator"></div>
</label>
<label for="pm6" class="control control--checkbox pm-checkbox">{{ translate('Money Gram') }}
<input class="form-control field p-track" id="pm6" data-parent="payment_id" name="p_methods[]" type="checkbox" value="Money Gram" >
<div class="control__indicator"></div>
</label>
<label for="pm7" class="control control--checkbox pm-checkbox">{{ translate('PayPal') }}
<input class="form-control field p-track" id="pm7" data-parent="payment_id" name="p_methods[]" type="checkbox" value="PayPal" >
<div class="control__indicator"></div>
</label>
<label for="pm10" class="control control--checkbox pm-checkbox">{{ translate('Other') }}
<input class="form-control field p-track" id="pm10" data-parent="payment_id" name="p_methods[]" type="checkbox" value="Other" >
<div class="control__indicator"></div>
</label>
</div>
</div>
<div class="form-group l-r-forms">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 fleft">
<input class="form-control p-track" placeholder="Enter destination port" id="port" name="port" type="text" required>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 fleft">
<select class="form-control p-track" id="validit" name="validity" required>
@foreach ($freqs as $freq)
{!! $freq !!}
@endforeach
</select>
</div>
</div>
<div class="clearfix"></div>
<div class="form-group">
<div class="control-group">
<label for="terms-condition" class="control control--checkbox">{{ translate('I have read, agreed to abide by') }} <span class="terms-condition-label">{{ translate('Terms and Conditions of RFQ') }}</span>
<input class="form-control field " id="terms-condition" name="t_c" type="checkbox" value="1" required>
<div class="control__indicator"></div>
</label>
<p class="error hidden" id="terms_condition_label color__cf0015">{{ translate('Please accept our terms and conditions') }}</p>
</div>
</div>
<div class="form-group">
<div class="col-lg-12 {{ $errors->has('g-recaptcha-response') ? ' has-error' : '' }}">
{!! app('captcha')->display() !!}
@if ($errors->has('g-recaptcha-response'))
<span class="help-block">
<strong>{{ $errors->first('g-recaptcha-response') }}</strong>
</span>
@endif
</div>
</div>
<button type="submit" class="btn btn-post-rfq">{{ translate('Post RFQ') }}</button>
</form>
</div>
</div>
</div>
</div>
</div>
@stop
@push('script')
@endpush