@extends('layouts.user') @section('content') @foreach($sliders as $slider) @if($slider->status == 1) @if(!empty($slider->subheading)) {{ $slider->subheading }} @endif {{ $slider->heading }} @if(!empty($slider->heading2)) {{ $slider->heading2 }} @endif Shop Now @endif @endforeach @php $coupons = \DB::table('coupons')->where('status', 1)->get(); @endphp @foreach($coupons as $coupon) Coupon: {{ $coupon->coupon_code }} - @if($coupon->discount_type == 'fixed') ₹{{ number_format($coupon->value, 2) }} off @else {{ number_format($coupon->value, 2) }}% off @endif @if($coupon->free_shipping) + Free Shipping @endif @endforeach Explore Collections View All Collection @foreach($categories as $category) @if($category->category_status == 1) @endif @endforeach New Arrivals Best Seller @php $wishlistIds = session('wishlist', []); @endphp @foreach($newArrivals as $product) product_id, $wishlistIds)) style="color:red;" @endif> Wishlist @csrf Add To cart {{ $product->product_name }} @if($product->product_base_mrp > $product->product_base_price) ₹{{ $product->product_base_mrp }} ₹{{ $product->product_base_price }} @else ₹{{ $product->product_base_price }} @endif @endforeach View All Products @foreach($bestSellers as $product) product_id, $wishlistIds)) style="color:red;" @endif> Wishlist @csrf Add To cart {{ $product->product_name }} @if($product->product_base_mrp > $product->product_base_price) ₹{{ $product->product_base_mrp }} ₹{{ $product->product_base_price }} @else ₹{{ $product->product_base_price }} @endif @endforeach @if($banner) {{ $banner->title }} {{ $banner->subtitle }} Shop Now @endif Latest Videos @foreach($videos as $index => $video) @php // convert youtube short/normal link to embed $embed = str_replace( ['watch?v=', 'youtu.be/', 'shorts/'], ['embed/', 'embed/', 'embed/'], $video->video_url ); @endphp {{ $video->name }} @endforeach @endsection
{{ $slider->subheading }}
Coupon: {{ $coupon->coupon_code }} - @if($coupon->discount_type == 'fixed') ₹{{ number_format($coupon->value, 2) }} off @else {{ number_format($coupon->value, 2) }}% off @endif @if($coupon->free_shipping) + Free Shipping @endif
{{ $banner->subtitle }}