@extends('frontend.layouts.app') @section('content')

Search Result For {{$_GET['search'] ?? ''}}

@include('layouts.message') @if(isset( $products ) && count( $products ) > 0 ) @foreach( $products as $product ) @php if($product->module_id == 1) { $product_folder = 'business'; } else if($product->module_id == 2) { $product_folder = 'home-business'; } else if($product->module_id == 3) { $product_folder = 'non-profit'; } else { $module_folder = 'default'; } $province = \App\Models\Province::find($product->province_id); @endphp
@if( isset( $product->setting->ad_icon ) )
Premium Icons
@endif
@if( isset( $product->featured_image ) && file_exists( public_path( $product_folder.'/'.$product->featured_image ) ) )
{{$product->title}}
@else
{{$product->title}}
@endif

{{$product->title}}

@if( isset( $product->subcategory ) && count( $product->subcategory ) ) @foreach( $product->subcategory as $adCat ) {{$adCat->adcategory->title ?? ''}} @endforeach @endif

{{ $product->phone ?? ''}}

{{$product->street_address}}

{{$product->city.','}} {{$province->name}}, {{$product->postal_code}}

@endforeach @else
Product Not Found Images

Product not Available!

The product you are looking for was not found.

@endif {!!$products->links()!!}
@include('frontend.ads.modal.favorite') @include('frontend.ads.modal.message') @include('frontend.ads.modal.login') @endsection @section('scripts') @include('frontend.ads.js.login-js') @include('frontend.ads.js.favorite-js') @include('frontend.ads.js.share-link-js') @include('frontend.ads.js.send-us-message-js') @endsection