Current File : /home/tradevaly/public_html/resources/views/frontend/pages/result_buyer.blade.php |
@extends('frontend.layouts.app')
@section('content')
<!--/************************** Header Area End ****************************/--->
<div class="bread">
<div class="container">
<ul class="breadcrumb">
<li class="breadcrumb-item" itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="">
<a itemprop="url" href="{{ route('homepage') }}">
<span itemprop="title">{{ translate('Home') }}</span>
</a>
</li>
<li class="breadcrumb-item active" itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="">
<span itemprop="title">{{ app('request')->input('s') }}</span>
</li>
</ul>
</div>
</div>
<!--------------------------- Search Result ------------------------------------>
<section class="buyers-listing-sec">
<div class="container">
<div class="row">
@if(!Auth::user())
<div class="col-md-3">
<section class="quote-now d-md-none d-lg-block d-xl-block">
@include('frontend.utils.tellus')
</section>
</div>
@else
<div class="side-nav-dark my_own_custom_style col-md-3 d-none d-lg-block height__500px">
@include('frontend.utils.auth_sidebar')
</div>
@endif
<!--- ************** Result Tab ***************************************-->
<div class="col-md-9">
<h3 class="hd-show-result">{{ translate('Showing') }} <span>{{ translate($offers->total()) }}</span> {{ translate('Buying Offers') }}</h3>
<div class="buyer-listing-tabs">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" href="{{ route('search') }}?s={{ app('request')->input('s') }}&type=product">{{ translate('Products') }}</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">{{ translate('Buying Leads') }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('search') }}?s={{ app('request')->input('s') }}&type=seller">{{ translate('Companies') }}</a>
</li>
</ul>
</div>
<div class="buyer-listing-result-col">
<div class="tab-content">
<div class="tab-pane container active" id="companies-tabs">
@foreach($offers as $offer)
<div class="buyer-listing-result-row buyer-tab-company company-sec">
<span class="buyer-listing-result-date"><i class="icon-date-ic"></i> {{ translate(date('d F, Y', strtotime($offer->created_at))) }}</span>
<a href="{{ route('buy.view', $offer->slug) }}" data-detail-link="" data-event-type="Buyer Offer" title="{{ translate($offer->title) }}"><h5>{{ translate($offer->title) }}</h5></a>
<p>{!! substr(strip_tags($offer->details), 0, 100) !!}<a href="{{ route('buy.view', $offer->slug) }}" title="{{ translate($offer->title) }}">{{ translate('Show More...') }}</a></p>
<ul class="buyer-listing-info buyers-info offer-detail-visible">
<li>
<i class="far fa-building"></i>
<label>{{ translate('Company Name:') }}</label>
@if(Auth::check() && !empty(Auth::user()->package_id))
<span class="text-truncate"> {{ translate($offer->buyer->name) }} </span>
@else
<span data-text-blur=""> <a href="javascript:registerPopup('Join Free');" title="{{ translate('Join Free') }}" type="button" data-toggle="modal" data-target="#exampleModalCenter" class="color__transparent_text__shadow">{{ translate('Membership Required') }}</a> </span>
@endif
</li>
<li>
<i class="far fa-address-card"></i>
<label>{{ translate('Contact Number:') }}</label>
@if(Auth::check() && !empty(Auth::user()->package_id))
<span class="text-truncate">{{ translate($offer->buyer->phone) }}</span>
@else
<span data-text-blur=""> <a href="javascript:registerPopup('Join Free');" title="{{ translate('Join Free') }}" type="button" data-toggle="modal" data-target="#exampleModalCenter" class="color__transparent_text__shadow">{{ translate('Membership Required') }}</a> </span>
@endif
</li>
<li>
<i class="far fa-user"></i>
<label>Purchaser:</label>
<span class="text-truncate">{{ translate($offer->buyer->user->name) }}</span>
</li>
</ul>
<div class="buyer-listing-action offer-action">
<a href="#" title=" {{ translate($offer->buyer->user->country->nicename) }}">
<i class="fi fi-{{strtolower($offer->buyer->user->country->iso)}}"></i>
</a>
<a href="#" title="Free">
<img src="{{asset('storage/images/admin/package/'.$offer->buyer->user->package->image)}}" width="112" height="34" alt="Free" class="lazy">
</a>
@if(Auth::check())
<a href="{{ route('company.inquery', $offer->buyer->user->username) }}?bid={{$offer->id}}" class="buyer-listing-btn">{{ translate('Contact Now') }}</a>
@else
<a href="javascript:registerPopup('Join Free');" title="{{ translate('Join Free') }}" type="button" data-toggle="modal" data-target="#exampleModalCenter" class="buyer-listing-btn">{{ translate('Contact Now') }}</a>
@endif
</div>
</div>
@endforeach
@if(!empty(request()->s))
{!! $offers->appends(["s" => request()->s,"type" => request()->type])->links() !!}
@else
{!! $offers->links() !!}
@endif
</div>
</div>
</div>
<section class="inner-banner-leftnav company-join-banner mt-3">
<div class="mx-auto w-75">
<h4>{{ translate('Haven’t found the right supplier yet? Let matching verified suppliers find you.') }}</h4>
<a href="{{route('rfq')}}" class="btn btn-sm btn-danger">{{ translate('Get Quotation Now') }}</a>
</div>
</section>
</div>
</div>
</div>
</section>
@endsection