Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/companies.blade.php |
@extends('frontend.layouts.app')
@push('css')
@endpush
@section('content')
@php
$top_banners = App\Models\Banner::where('position','top_company_banner')->latest()->get();
$bottom_banners = App\Models\Banner::Where('position','bottom_company_banner')->latest()->get();
@endphp
<section class="representative-banner page_bottom_slider">
@foreach($top_banners as $banner )
<a href="{{ $banner->link }}">
<img src="{{asset('storage/images/admin/banner/'.$banner['image'])}}" class="img-fluid w-100"/>
</a>
@endforeach
</section>
<!--------------------------- Buyer Listing------------------------------------>
<section class="buyers-listing-sec">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-4 col-lg-4 filter-leftbar mt-4 mt-md-0">
<h6 id="alpsorth"> {{translate("Alphabetic Sorting") }} {{ Request::get('a') }}</h6>
<div class="alphabetical-sorting">
<div class="alphabetical-sorting">
<ul class="bg-light-grey hts-code-categories-page">
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'a') active @endif text-uppercase" rel="nofollow" href="/companies/initial/a/" title="a">{{ translate('a') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'b') active @endif text-uppercase" rel="nofollow" href="/companies/initial/b/" title="b">{{ translate('b') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'c') active @endif text-uppercase" rel="nofollow" href="/companies/initial/c/" title="c">{{ translate('c') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'd') active @endif text-uppercase" rel="nofollow" href="/companies/initial/d/" title="d">{{ translate('d') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'e') active @endif text-uppercase" rel="nofollow" href="/companies/initial/e/" title="e">{{ translate('e') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'f') active @endif text-uppercase" rel="nofollow" href="/companies/initial/f/" title="f">{{ translate('f') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'g') active @endif text-uppercase" rel="nofollow" href="/companies/initial/g/" title="g">{{ translate('g') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'h') active @endif text-uppercase" rel="nofollow" href="/companies/initial/h/" title="h">{{ translate('a') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'i') active @endif text-uppercase" rel="nofollow" href="/companies/initial/i/" title="i">{{ translate('i') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'j') active @endif text-uppercase" rel="nofollow" href="/companies/initial/j/" title="j">{{ translate('j') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'k') active @endif text-uppercase" rel="nofollow" href="/companies/initial/k/" title="k">{{ translate('k') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'l') active @endif text-uppercase" rel="nofollow" href="/companies/initial/l/" title="l">{{ translate('l') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'm') active @endif text-uppercase" rel="nofollow" href="/companies/initial/m/" title="m">{{ translate('m') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'n') active @endif text-uppercase" rel="nofollow" href="/companies/initial/n/" title="n">{{ translate('n') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'o') active @endif text-uppercase" rel="nofollow" href="/companies/initial/o/" title="o">{{ translate('o') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'p') active @endif text-uppercase" rel="nofollow" href="/companies/initial/p/" title="p">{{ translate('p') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('q') == 'a') active @endif text-uppercase" rel="nofollow" href="/companies/initial/q/" title="q">{{ translate('q') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'r') active @endif text-uppercase" rel="nofollow" href="/companies/initial/r/" title="r">{{ translate('r') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 's') active @endif text-uppercase" rel="nofollow" href="/companies/initial/s/" title="s">{{ translate('s') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 't') active @endif text-uppercase" rel="nofollow" href="/companies/initial/t/" title="t">{{ translate('t') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'u') active @endif text-uppercase" rel="nofollow" href="/companies/initial/u/" title="u">{{ translate('u') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'v') active @endif text-uppercase" rel="nofollow" href="/companies/initial/v/" title="v">{{ translate('v') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('w') == 'a') active @endif text-uppercase" rel="nofollow" href="/companies/initial/w/" title="w">{{ translate('w') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'x') active @endif text-uppercase" rel="nofollow" href="/companies/initial/x/" title="x">{{ translate('x') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'y') active @endif text-uppercase" rel="nofollow" href="/companies/initial/y/" title="y">{{ translate('y') }}</a>
</li>
<li class="d-inline-block">
<a class="btn btn-sm btn-secondary @if(app('request')->input('a') == 'z') active @endif text-uppercase" rel="nofollow" href="/companies/initial/z/" title="z">{{ translate('z') }}</a>
</li>
</ul>
</div>
</div>
<section class="quote-now bg-white productQuoteRegister mt-4">
@if(!Auth::user())
<section class="quote-now d-md-none d-lg-block d-xl-block">
@include('frontend.utils.tellus')
</section>
@else
<div class="side-nav-dark my_own_custom_style col-md-12 mt-5 d-none d-lg-block">
@include('frontend.utils.auth_sidebar')
</div>
@endif
</section>
</div>
<div class="col-sm-12 col-md-8 col-lg-8">
<div class="companies-section">
@foreach($seller as $company)
@if( $company->company)
<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->username?$company->username:'') }}" data-detail-link="" data-event-type="Company" title="{{$company->company->name ? $company->company->name:''}}" class="text-center"> <img src="{{asset('storage/images/user/avatar/'.$company->company->image.'')}}" class="lazy" alt="{{$company->company->name?$company->company->name:''}}" style=""></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->username) }}" title="{{$company->name}}"> {{$company->company->name? $company->company->name:''}}</a></h5>
<p>{{ substr(strip_tags($company->company->des), 0, 100) }} <a href="{{ route('supplier.view', $company->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">{{$company->company->type}}</span>
</li>
<li>
{{ translate('Main Products') }}:
<span class="text-truncate">{{$company->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->id)->where('status',1)->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="" style="">
<h6 class="text-truncate"> {{ $product->id }} {{$product->title}} </h6>
<span>- {{ translate('View Details') }} -</span>
</a>
</li>
@endforeach
</ul>
@if(!empty($company->package))
<div class="buyer-listing-action full-with-div mg-top-10 d-flex align-items-center">
<a href="{{ route('region.change', $company->country->iso) }}">
<i class="fi fi-{{ strtolower($company->country->iso) }}"></i>
</a>
<a class="membership-tag-sm">
<img src="{{ asset('storage/images/admin/package/'.$company->package->image ?? '')}}" class="lazy" alt="" width="112" height="34" style="">
</a>
@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">Contact Now</a>
@else
<a href="{{ route('company.inquery',$company->username) }}" class=" buyer-listing-btn">{{ translate('Contact Now') }}</a>
@endif
</div>
@endif
</div>
</div>
</div>
@endif
@endforeach
{{ $seller->links('page') }}
</div>
<section class="inner-banner-leftnav company-join-banner mt-3">
<div class="mx-auto w-75">
<h4>{{ translate('Want to Display Your Products on Trade Valy') }}</h4>
<a href="{{ route('register') }}" data-fancybox="" data-src="#popupform" class="btn btn-sm btn-danger">{{ translate('Join Free Now') }}</a>
</div>
</section>
</div>
</div>
</div>
</section>
<section class="representative-banner page_bottom_slider" id="page_bottom_banner">
@foreach($bottom_banners as $banner )
<a href="{{ $banner->link }}">
<img src="{{asset('storage/images/admin/banner/'.$banner['image'])}}" class="img-fluid w-100"/>
</a>
@endforeach
</section>
@stop
@section('script')
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
$('.page_bottom_slider').slick({
dots: false,
infinite: true,
slidesToShow: 1,
centerMode: false,
arrows:false,
autoplay: true,
speed: 3000,
autoplaySpeed: 2000,
});
</script>
@stop