@extends('layouts.guest') @section('title', $business->name) @section('content')

{{$business->name}}

{{$business_location->name}}

{!! $business_location->location_address !!}

@foreach($products as $product_category)
@foreach($product_category as $product)
@php $discount = $discounts->firstWhere('brand_id', $product->brand_id); if(empty($discount)){ $discount = $discounts->firstWhere('category_id', $product->category_id); } @endphp @if(!empty($discount)) - {{($discount->discount_amount)}}% @endif @php $max_price = $product->variations->max('sell_price_inc_tax'); $min_price = $product->variations->min('sell_price_inc_tax'); @endphp

{{$product->name}}

@if($product->type == 'variable') @php $variations = $product->variations->groupBy('product_variation_id'); @endphp @foreach($variations as $product_variation) @endforeach @endif
@lang('lang_v1.price'): {{($max_price)}} @if($max_price != $min_price) - {{($min_price)}} @endif
@lang('product.sku'): {{$product->sku}}
{{$product_variation->first()->product_variation->name}}:
@if($loop->iteration%4 == 0)
@endif @endforeach
@endforeach
@stop @section('javascript') @endsection