@php $cart = session()->get('cart'); @endphp @foreach($products as $product)
@php $offerPrice = productOfferPrice($product->id, $product->price) @endphp {{ $product->name }} @if($product->is_featured) Featured @endif @if($offerPrice['discount'] > 0) {{ $offerPrice['discount'] }}% OFF @endif
{{--

Available(In Stock)

--}}

{{ $product->name }}

@if(!empty($product->pack_size))

{{ trans('frontend_lang.pkd').$product->pack_size }}

@endif
{{--
--}} @if($product->inventory_management == \App\Models\Product::INVENTORY_MANAGEMENT_NO)
{{--@if(auth()->user())--}} {{----}} {{--@else--}} {{----}} {{--@endif--}}
@else
@lang('frontend_lang.out_of_stock')
@endif @if(!empty($offerPrice['end_date']))

@lang('frontend_lang.expired_date') {{ $offerPrice['end_date'] }}

@endif
@endforeach