@extends('frontend.layouts.app') @section('meta_title', 'Trade Listings') @section('content')
Trade Listings
Filters:
Active Filters:
    @foreach ($req_array as $key => $filter) @if(($filter != null) && ($key == 'product_origin' && $filter != null) || ($key == 'vendor' && $filter != null) ) @php if($key == 'product_origin'){ $flag = \App\Models\Country::where('name', $filter)->first(); }elseif($key == 'vendor'){ $flag = \App\Models\User::where('name', $filter)->first()->country; } @endphp
  • {{ ucwords($filter) }}flag-icon
  • @elseif($filter != null)
  • {{ ucwords($filter) }}
  • @endif @endforeach
Sort By:
@if ($all_listings->isEmpty())

Search results not found

Try again with other keywords in search

@else
@if ($all_listings->isNotEmpty()) @foreach ($all_listings as $listing)
{{ ucfirst($listing->listing_type) }} {{ date('F d Y', strtotime($listing->created_at)) }}
@if ($listing->listing_images->first() != null) product-bg @else product-bg @endif
Product Family: @if ($listing->list_families->isNotEmpty()) @foreach ($listing->list_families as $item) {{ $item->family->name }} @endforeach @endif
Product: @if ($listing->list_product->isNotEmpty()) @foreach ($listing->list_product as $item) {{ $item->product->name }} @endforeach @endif
@if($listing->listing_type == 'demand') Preferred Origins: @else Product Origin: @endif
@if ($listing->list_origin->isNotEmpty()) @foreach ($listing->list_origin as $item) flag-india-icon

{{ $item->origin->name }}

@endforeach @endif
@if($listing->vendor != null) @endif
@endforeach @endif
@endif
@endsection @section('script') @endsection