Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/buyoffer.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"> {{ translate($offer->title) }}</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 p-3">
@include('frontend.utils.tellus')
</section>
</div>
@else
<div class="side-nav-dark my_own_custom_style col-md-3 d-none d-lg-block">
@include('frontend.utils.auth_sidebar')
</div>
@endif
<!--- ************** Result Tab ***************************************-->
<div class="col-md-9 mt-4 mt-md-0">
<h1 class="hd-rd-brdr hd-inner-link">{{ translate($offer->title)}}</h1>
<div class="buyer-listing-result-col">
<div class="tab-content">
<div class="tab-pane container active" id="companies-tabs">
<div class="buyer-listing-result-row buyer-tab-company company-sec buyer-detail-page-row">
<span class="buyer-listing-result-date"><i class="icon-date-ic"></i> {{date('d F, Y', strtotime($offer->created_at))}}</span>
<h3 class="left-border-heading w-75">{{ translate($offer->title) }}</h3>
<p id="shortDescription">{!! $offer->details !!}</p>
<ul class="buyer-listing-info buyers-info offer-detail-visible">
@Auth
<li>
<i class="icon-compnay-name-ic"></i>
<label>{{ translate('Company Name:') }} {{ Auth::user()->package_id }}</label>
@if(Auth::user()->package_id == 1 )
<a href="{{ route('packages') }}"><span class="text-truncate text_blure"> Package Required </span> </a>
@else
<span class="text-truncate"> {{ translate($offer->buyer->name)}} </span>
@endif
</li>
<li>
<i class="icon-contact-num-ic"></i>
<label>{{ translate('Contact Number:') }}</label>
@if(Auth::user()->package_id == 1 )
<a href="{{ route('packages') }}"><span class="text-truncate text_blure"> Package Required </span> </a>
@else
<span class="text-truncate"> {{ translate($offer->buyer->phone)}} </span>
@endif
</li>
@endauth
@Guest
<li>
<i class="icon-compnay-name-ic"></i>
<label>{{ translate('Company Name:') }}</label>
<a href="{{ route('packages') }}"><span class="text-truncate text_blure"> Package Required </span> </a>
</li>
<li>
<i class="icon-contact-num-ic"></i>
<label>{{ translate('Contact Number:') }}</label>
<a href="{{ route('packages') }}"><span class="text-truncate text_blure"> Package Required </span> </a>
</li>
@endguest
<li>
<i class="icon-purchaser-ic"></i>
<label>Purchaser:</label>
<span class="text-truncate">{{ translate($offer->buyer->user->name) }}</span>
</li>
</ul>
<div class="buyer-listing-action offer-action d-flex">
@if(Auth::check())
<a href="#" title="{{ translate($offer->buyer->user->country->nicename) }}">
<i class="fi fi-{{strtolower($offer->buyer->user->country->iso)}}"></i>
</a>
<a href="#" title="{{ translate('Free') }}">
<img src="{{asset('storage/images/admin/package/'.$offer->buyer->user->package->image)}}" width="112" height="34" alt="Free" class="lazy">
</a>
<a href="{{ route('company.contact', $offer->buyer->user->username) }}?bid={{$offer->id}}" class="buyer-listing-btn sm-btn d-flex align-items-center">{{ translate('Contact Now') }}</a>
@else
<a href="#" title="{{ translate($offer->buyer->user->country->nicename) }}">
<i class="fi fi-{{strtolower($offer->buyer->user->country->iso)}}"></i>
</a>
<a href="#" title="{{ translate('Free') }}">
<img src="{{asset('storage/images/admin/package/'.$offer->buyer->user->package->image)}}" width="112" height="34" alt="Free" class="lazy">
</a>
<a href="javascript:registerPopup('Join Free');" title="{{ translate('Join Free') }}" type="button" data-toggle="modal" data-target="#exampleModalCenter" class="buyer-listing-btn sm-btn d-flex align-items-center">{{ translate('Contact Now') }}</a>
@endif
</div>
</div>
</div>
</div>
</div>
<section class="relatedBuyOfferComponent white-panel">
<h4 class="hd-rd-brdr hd-inner-link">{{ translate('Related Buy Offers') }} <a href="#" title="Related Buy Offers">{{ translate('- View All -') }}</a></h4>
<div class="latest-buyers ">
<div class="row">
<div class="col-md-6">
<ul>
@php
$i = 0;
@endphp
@foreach($buyoffer as $offer)
@php
$i++;
@endphp
<li>
<a href="{{ route('buy.view', $offer->slug) }}" title="{{$offer->title}}">
<i class="fi fi-{{ strtolower($offer->country->iso) }}"> </i>
<span class="world-name truncate">{{ translate($offer->country->nicename) }}</span>
<span class="lst-buyer-text truncate">{{ translate($offer->title) }}</span>
<small class="date">{{ translate(date('d F, Y', strtotime($offer->created_at))) }}</small>
</a>
</li>
@if($i%10==0)
</ul>
</div>
<div class="col-md-6">
<ul>
@endif
@endforeach
</div>
</div>
</div>
</section>
<section class="inner-banner-leftnav company-join-banner mt-3">
<div class="mx-auto w-75">
<h5>{{ translate('To view this buyer\'s contact information please Sign In Now!. Not a member yet? It takes less than a minute to Join FREE now!') }}</h5>
<a href="{{'/login'}}" class="btn btn-sm btn-danger">{{ translate('Login') }}</a>
<a href="{{ route('register') }}" type="button" data-toggle="modal" data-target="#exampleModalCenter" class="btn btn-sm btn-info">{{ translate('Register') }}</a>
</div>
</section>
</div>
</div>
</div>
</section>
@endsection