Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/user/pages/buy_offers.blade.php |
@extends('user.ayaan.master')
@push('style')
<link href="{{ asset('/assets/libs/select2/select2.min.css') }}" rel="stylesheet" type="text/css" />
<style>
.my_select2_optgroup_selected {
background-color: #ddd;
}
.my_select2_optgroup_hovered {
color: #FFF;
background-color: #5897fb !important;
cursor: pointer;
}
strong.select2-results__group {
padding: 0 !important;
}
.my_select2_optgroup {
display: block;
padding: 6px;
}
</style>
@endpush
@section('content')
<div class="container-fluid">
<div class="row">
@if($offers->count() > 0)
@foreach($offers as $offer)
<div class="col-lg-12">
<div class="card quote__style_div">
<div class="card-body">
<div class="h4"><span>{{$offer->title}}</span></div>
<p>{{ \Illuminate\Support\Str::limit(strip_tags($offer->details), 70, $end='...') }}</p>
@if($offer->product)
<a href="{{ route('product.view', $offer->product->slug) }}"> <img style="width:100px; border-radius:10%;" src="{{asset('storage/images/admin/product/'.$offer->product->image)}}" alt=""></a>
<div class="h4"><span>{{$offer->product->title}}</span></div>
@endif
<h5 class='pb-1'>
<i class="fi fi fi-{{ strtolower($offer->country->iso) }}"> </i> <i class="{{$offer->country->name }}"> </i></h4>
<ul>
<li>Posted On <span> : 16-08-2022</span></li>
<li>Company Name <span> : <a href='#'>@if(!empty(Auth::user()->package_id) && Auth::user()->package_id != 1) {{$offer->buyer->name}} @else Premium Membership Required @endif</a></span></li>
<li>Contact Number <span> : <a href='#'>@if(!empty(Auth::user()->package_id) && Auth::user()->package_id != 1) {{$offer->buyer->phone}} @else Premium Membership Rewuired @endif</a></span></li>
</ul>
@if($loop->index <= 4)
<a href='{{ route('company.contact', $offer->id) }}?bid={{$offer->id}}' class='btn btn-info'>Quote Now</a>
<a href='{{route('user.recommand.offer.foryou.details',$offer->id)}}' class='btn btn-info'>View Details</a>
@else
<a href='https://tradevaly.com.bd/premium-service' class='btn btn-info'>Quote Now</a>
@endif
</div>
</div>
</div>
@endforeach
@else
<div class="col-lg-12">
<div class="card quote__style_div">
<div class="card-body">
<div class="h4"><span>Ops . The section seems empty . please reload the page to view new offer </span></div>
</div>
</div>
</div>
@endif
</div>
</div>
@stop
@push('script')
<script src="{{ asset('/assets/libs/select2/select2.min.js') }}"></script>
<script src="{{ asset('/assets/js/pages/ecommerce-select2.init.js') }}"></script>
<script>
$(function() {
$('.select2').select2({
maximumSelectionSize: 1,
placeholder: "Select Industry"
});
});
</script>
@endpush