@extends('layouts.app') @section('content')
@php $cat_count = 0; @endphp @foreach($categories as $category) @php if(!empty($category_detail->id)) { $category->id == $category_detail->id ? 'active show' : ''; } else { $selected = $cat_count == 0 ? 'active show' : ''; } @endphp
@if(!empty($category->products)) @foreach($category->products as $product)
{{@$product->market->name}}

{{@$product->name}}

@if(checkDiscountedPrice($product, true)) {!! getPriceColumn($product) !!} {!! getPriceColumn($product,'discount_price') !!} @else {!! getPriceColumn($product) !!} @endif
@endforeach @endif
@php $cat_count ++; @endphp @endforeach
@endsection