@extends('layouts.frontend.app') @section('content')
Podcasts
@if(count($podcasts) > 0) @foreach ($podcasts as $pod) @php $url = $pod->video_url; $videoId = ''; if (strpos($url, 'watch?v=') !== false) { $videoId = explode('watch?v=', $url)[1]; } elseif (strpos($url, 'youtu.be/') !== false) { $videoId = explode('youtu.be/', $url)[1]; } $thumbnail = "https://img.youtube.com/vi/$videoId/hqdefault.jpg"; @endphp {{-- YouTube video design --}} {{-- Image design (if available) --}} @if(count($podcasts) > 0) @foreach ($events as $pod) @endforeach @endif @endforeach @endif
{{-- Modal --}}
{{--
--}}

Best Seller

View All
@if(count($bestSellerProducts ) > 0) @foreach ($bestSellerProducts as $pro)
@if(!empty($pro['total_discount_price']))
{{ $pro['product_discount_price'] ?? ''}}%
@else @endif

{{ Str::limit($pro['product_name'] ?? '', 25, '..') }}

{{ Str::limit($pro['product_name'] ?? '', 20, '..') }}

{{$pro['product_book_author']}}
@for($i = 1; $i <= 5; $i++) @if($i <= $pro['rating']) @else @endif @endfor
({{$pro['reviews_count']}})
@if(!empty($pro['total_discount_price']))
₹{{ number_format($pro['total_discount_price']), 2 }} ₹{{number_format($pro['product_price']), 2 }}
@else ₹{{ number_format($pro['product_price']), 2 }} @endif @if($pro['product_stock_quantity'] > 0) @if(Auth::check()) {{-- Logged-in & In Stock --}} Shop Now @else {{-- Guest & In Stock --}} Shop Now @endif @else {{-- Out of Stock (All Users) --}}
Out of Stock @if(Auth::check()) {{-- Logged-in users only --}} Notify Me @endif
@endif
@endforeach @endif

Free Shipping

Order over ₹100

Secure Payment

100% Secure Payment

Best Price

Guaranteed Low Cost

Easy Return

Within 30 Days returns

{{--
--}}

New Arrivals

View All
@if(count($newArrivalProducts) > 0) @foreach ($newArrivalProducts as $pro)
@if(!empty($pro['total_discount_price']))
{{ $pro['product_discount_price'] ?? ''}}%
@else @endif

{{ Str::limit($pro['product_name'] ?? '', 25, '..') }}

{{ Str::limit($pro['product_name'] ?? '', 20, '..') }}

{{$pro['product_book_author']}}
@for($i = 1; $i <= 5; $i++) @if($i <= $pro['rating']) @else @endif @endfor
({{$pro['reviews_count']}})
@if(!empty($pro['total_discount_price']))
₹{{ number_format($pro['total_discount_price']), 2 }} ₹{{ number_format($pro['product_price']), 2 }}
@else ₹{{ number_format($pro['product_price']), 2 }} @endif @if($pro['product_stock_quantity'] > 0) @if(Auth::check()) {{-- Logged-in & In Stock --}} Shop Now @else {{-- Guest & In Stock --}} Shop Now @endif @else {{-- Out of Stock (All Users) --}}
Out of Stock @if(Auth::check()) {{-- Logged-in users only --}} Notify Me @endif
@endif
@endforeach @endif

Enter the Publisher

{{-- View All --}}
@forelse($publishedProducts as $product)

{{$product->publisher_name}}

@empty

No Published Products found

@endforelse
{{--

Enter the marvel universe

@forelse($mcuProducts as $product) @empty

No Marvel Products found

@endforelse
--}} {{--

Enter the DC fandom

@forelse($dcProducts as $product) @empty

No DC Products found

@endforelse
--}} @endsection