Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/result_company.blade.php |
@extends('frontend.layouts.app')
@section('content')
<div class="bread">
<div class="container">
<ul class="breadcrumb">
<li class="breadcrumb-item" itemtype="" itemscope="">
<a itemprop="url" href="{{ route('homepage') }}">
<span itemprop="title">{{ translate('Home') }}</span>
</a>
</li>
<li class="breadcrumb-item active" itemtype="" 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 pt-3 pl-2 pr-2">
@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
<div class="col-md-9">
<h3 class="hd-show-result">{{ translate('Showing') }} <span>{{ translate($seller->total()) }} </span>{{ translate('Company Below') }}</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" href="{{ route('search') }}?s={{ app('request')->input('s') }}&type=buyer">{{ translate('Buying Leads') }}</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="javascript:;">{{ 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($seller as $company)
@if( $company->user)
<div class="buyer-listing-result-row buyer-tab-company">
<div class="row">
<div class="col-sm-12 col-md-2 pr-md-0">
<div class="com-flex">
<a href="{{ route('supplier.view', $company->user->username) }}" data-detail-link="" data-event-type="Company" title="{{$company->name}}" class="text-center"> <img src="{{asset('storage/images/user/avatar/'.$company->image.'')}}" class="lazy" alt="{{$company->name}}"></a>
</div>
</div>
<div class="col-sm-12 col-md-5 pr-md-0 pl-md-2">
<h5 class="text-truncate"><a href="{{ route('supplier.view', $company->user->username) }}" title="{{$company->name}}"> {{ translate($company->name) }}</a></h5>
<p> {{ substr(strip_tags($company->des), 0, 100) }} <a href="{{ route('supplier.view', $company->user->username) }}">{{ translate('Show More...') }}</a></p>
<ul class="buyer-listing-info li-width-50 full-with-ul">
<li>
{{ translate('Business Type') }}:
<span class="text-truncate">{{ translate($company->type) }}</span>
</li>
<li>
{{ translate('Main Products') }}:
<span class="text-truncate">{{ translate($company->main_products) }}</span>
</li>
</ul>
</div>
<div class="col-sm-12 col-md-5 pr-md-0 pl-md-0 company-item">
<ul class="tab-company-item-lst">
@php
$prod = \App\Models\Product::where('supplier_id', $company->user_id)->take(3)->get();
@endphp
@foreach($prod as $product)
<li>
<a href="{{ route('product.view', $product->slug) }}">
<img src="{{asset('storage/images/admin/product/'.$product->image.'')}}" class="lazy" alt="">
<h6 class="text-truncate">{{ translate($product->title) }}</h6>
<span>- {{ translate('View Details') }} -</span>
</a>
</li>
@endforeach
</ul>
<div class="buyer-listing-action full-with-div mg-top-10">
<a href="{{ route('region.change', $company->user->country->iso) }}">
<i class="fi fi-{{ strtolower($company->user->country->iso) }}"></i>
</a>
@if(Auth::check())
<a href="{{ route('subscription.buy', $company->user->package->slug) }}" class="membership-tag-sm">
<img src="{{asset('storage/images/admin/package/'.$company->user->package->image)}}" class="lazy" alt="{{$company->user->package->image}}" width="112" height="34">
</a>
@else
<a href="#" class="membership-tag-sm">
<img src="{{asset('storage/images/admin/package/'.$company->user->package->image)}}" class="lazy" alt="{{$company->user->package->image}}" width="112" height="34">
</a>
@endif
@if(!Auth::check())
<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>
@else
<a href="{{ route('company.inquery', $company->user->username) }}" class=" buyer-listing-btn">{{ translate('Contact Now') }}</a>
@endif
</div>
</div>
</div>
</div>
@endif
@endforeach
@if(!empty(request()->s))
{!! $seller->appends(["s" => request()->s,"type" => request()->type])->links() !!}
@else
{!! $seller->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