@include('Website.Includes.header', ['meta_Details' => $meta_details]) @php use Illuminate\Support\Facades\Auth; use App\General\ProductClass; use App\General\DiscountClass; use App\General\CategoryClass; $logged_in_user = Auth::user(); @endphp
@if ($products->isNotEmpty()) @foreach ($products as $product)
@if (isset($product->discount)) @if ($product->discount->active == 1) @if ($product->discount->limited == 1) @if ($currentDate >= $fromDate && $currentDate <= $toDate) @endif @else @endif @endif @elseif (DiscountClass::check_collection_discount($product->id))