@php $cart_added = []; @endphp
@php $product_url = route('product', $product->slug); if ($product->auction_product == 1) { $product_url = route('auction-product', $product->slug); } @endphp {{ $product->product_name }} @if (discount_in_percentage($product) > 0) -{{ discount_in_percentage($product) }}% @endif @if ($product->auction_product == 0) {{ translate('Add to Cart') }} @endif @if ( $product->auction_product == 1 && $product->auction_start_date <= strtotime('now') && $product->auction_end_date >= strtotime('now')) @php $carts = get_user_cart(); if (count($carts) > 0) { $cart_added = $carts->pluck('product_id')->toArray(); } $highest_bid = $product->bids->max('amount'); $min_bid_amount = $highest_bid != null ? $highest_bid + 1 : $product->starting_bid; @endphp {{ translate('Place Bid') }} @endif

{{ $product->getTranslation('name') }}

@if ($product->auction_product == 0) @if (home_base_price($product) != home_discounted_base_price($product))
{{ home_base_price($product) }}
@endif
{{ home_discounted_base_price($product) }}
@endif @if ($product->auction_product == 1)
{{ single_price($product->starting_bid) }}
@endif