@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 ) )
@endif
@if( isset( $product->featured_image ) && file_exists( public_path( $product_folder.'/'.$product->featured_image ) ) )
@else
@endif
{{ $product->phone ?? ''}}
{{ $product->email ?? '' }}
{{$product->street_address}}
{{$product->city.','}} {{$province->name}}, {{$product->postal_code}}
@endforeach
@else
Product not Available!
The product you are looking for was not found.
@endif
{!!$products->links()!!}