{{-- CSRF Token --}} {{-- Store icon and color --}} @if(isset($business_card_details->seo_configurations) && json_decode($business_card_details->seo_configurations)->favicon != null) @else @endif {{-- CSS --}} {{-- Swiper CSS --}} {{-- Font --}} {{-- Check business details --}} @if ($business_card_details != null) @php $custom_css = $business_card_details->custom_css; $custom_js = $business_card_details->custom_js; // Ensure ') === false) { $custom_css = ""; } // Ensure ') === false) { $custom_js = ""; } @endphp {!! $custom_css !!} {!! $custom_js !!} @endif {{-- JS --}} {{-- SEO Tags --}} {!! SEOMeta::generate() !!} {!! OpenGraph::generate() !!} {!! Twitter::generate() !!} {!! JsonLd::generate() !!} {{-- Check PWA --}} @if ($plan_details != null) @if ($plan_details['pwa'] == 1 && $business_card_details->is_enable_pwa == 1) @laravelPWA @endif @endif {{-- Limited Text Function --}} @php use Illuminate\Support\Facades\DB; // Fetch settings from the database $config = DB::table('config')->get(); if (!function_exists('limit_text')) { function limit_text($text) { $limit = 4; if (str_word_count($text, 0) > $limit) { $words = str_word_count($text, 2); $pos = array_keys($words); $text = substr($text, 0, $pos[$limit]) . '...'; } return $text; } } @endphp
{{-- Page --}}
@include('templates.includes.header', ['bg_color' => 'indigo', 'badge_color' => 'danger'])
{{-- Greeting message --}}

{{ $business_card_details->sub_title }}

{{-- Success Message (hidden by default) --}} @if (session('success'))

{{ session('success') }}

@endif {{-- Failed Message (hidden by default) --}} @if (session('failed'))

{{ session('failed') }}

@endif
{{-- Cover --}} @if (is_array(json_decode($business_card_details->cover)) == true) @foreach (json_decode($business_card_details->cover) as $cover) {{ $business_card_details->title }} @endforeach @else {{ $business_card_details->title }} @endif
{{-- Filter --}}
@foreach (request()->except(['min', 'max', 'page']) as $key => $value) @endforeach

{{ __('Categories') }}

@foreach ($categories as $category)
{{ $category->category_name }}

{{ __($category->category_name) }}

@endforeach
@foreach (request()->except(['query', 'page']) as $key => $value) @endforeach

{{ __('Products') }}

@if (count($products) > 0)
@foreach ($products as $product)
@php $productImages = explode(',', $product->product_image); @endphp @if ($product->badge)
{{ $product->badge }}
@endif

{{ $product->product_name }}

{{ $product->product_short_description }}

{{ $product->sales_price }}

{{ $currency }}{{ formatCurrencyCard($product->sales_price) }}

@if ($product->sales_price != $product->regular_price) @if ($product->regular_price)

{{ $currency }}{{ formatCurrencyCard($product->regular_price) }}

@endif @else {{ $currency }}{{ $product->sales_price }} @endif
@if ($product->product_status == 'instock') @endif
@endforeach {{-- Paginate --}}
@if (request()->has('category')) {{ $products->appends(request()->except('page'))->links('vendor.pagination.store', ['color' => 'indigo']) }} @else {{ $products->links('vendor.pagination.store', ['color' => 'indigo']) }} @endif
@else

{{ __('No Products Founds!') }}

@endif
@include('templates.includes.bottom-bar', ['color' => 'indigo', 'bg' => 'light'])
{{-- Cart Items --}}

{{ __('Cart Items') }}

{{ __('Your cart is empty.') }}

{{ __('Start Shopping') }}
{{-- Place order --}} {{-- Newsletter Popup --}} @if ($business_card_details != null) {{-- Check Newsletter --}} @if (!empty($business_card_details->is_newsletter_pop_active) && $business_card_details->is_newsletter_pop_active == 1) {{-- Auto Open Modal --}} @endif @endif {{-- Information Popup --}} @if ($business_card_details != null) {{-- Check Information Popup --}} @if (!empty($business_card_details->is_info_pop_active) && $business_card_details->is_info_pop_active == 1) @php // Use fully qualified class name instead of `use` $information_pop = \App\InformationPop::where('card_id', $business_card_details->card_id)->first(); // Variables $confetti_effect = $information_pop->confetti_effect ?? 0; $img = $information_pop->info_pop_image ?? ''; $title = $information_pop->info_pop_title ?? ''; $desc = $information_pop->info_pop_desc ?? ''; $button_text = $information_pop->info_pop_button_text ?? ''; $button_url = $information_pop->info_pop_button_url ?? '#'; @endphp {{-- Auto Open Modal --}} {{-- Enable Confetti --}} @if ($confetti_effect == 1) @endif @endif @endif @if ($plan_details != null) {{-- Check PWA --}} @if ($plan_details['pwa'] == 1 && $business_card_details->is_enable_pwa == 1) @include('vendor.laravelpwa.bs_pwa_modal') @endif @endif {{-- WharApp Chat --}} @include('templates.includes.whatsapp-float', ['businessImage' => $business_card_details->profile, 'businessName' => $card_details->title, 'whatsappNumber' => $enquiry_button]) {{-- Swiper JS --}} {{-- Custom JS --}} @yield('custom-js')