@php //get all product of category $products = get_product_by_brand([ 'brand_id' => $brand->id, 'condition' => [ 'ec_products.status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED, 'ec_products.is_variation' => 0, ], 'order_by' => [ 'ec_products.order' => 'ASC', 'ec_products.created_at' => 'DESC', ], 'paginate' => [ 'per_page' => 20, 'current_paged' => 1 ], ]); @endphp
{!! $products->links() !!}
@foreach ($products as $product)

{{ $product->name }}

@if ( $product->front_sale_price ) {{ format_price($product->front_sale_price) }} @endif {{ format_price ($product->price) }}
@endforeach
{!! $products->links() !!}