@php $brandColor = $customization['brand_color'] ?? '#3B82F6'; $buttonColor = $customization['button_color'] ?? '#3B82F6'; $backgroundType = $customization['background_type'] ?? 'gradient'; $backgroundColor = $customization['background_color'] ?? '#3B82F6'; $gradientStart = $customization['gradient_color_start'] ?? '#3B82F6'; $gradientEnd = $customization['gradient_color_end'] ?? '#9333EA'; $textColor = $customization['text_color'] ?? '#1F2937'; $bgImage = isset($customization['cover_background_image']) && $customization['cover_background_image'] ? asset('images/' . $customization['cover_background_image']) : null; @endphp
{{-- Logo Section --}} @if($siteConfig->logo)
{{ $siteConfig->name }}
@else

{{ $siteConfig->name ?? 'GB Secure' }}

@endif {{-- Main Card with Chat Style --}}
{{-- STEP 1: Serial Number Entry --}}
{{-- Bot Message --}}
{{-- Chatbot Avatar --}} @if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif

{{ $customization['step1_greeting_title'] ?? '👋 Hello there!' }}

@if($serial)

{{ $customization['step1_with_qr_message'] ?? 'Perfect! I\'ve detected your product serial number from the QR code you scanned.' }}

{{ $customization['step1_with_qr_sub_message'] ?? 'Let\'s verify your product\'s authenticity together.' }}

@else

{{ $customization['step1_without_qr_message'] ?? 'I\'m here to help you verify your product\'s authenticity. Let\'s get started by entering your serial number.' }}

@endif
{{-- User Input Area --}}
@if($serial)

Serial number detected from QR code

@endif @error('serial') {{ $message }} @enderror
{{-- STEP 2: Guided Instructions --}}
{{-- Bot Message 1 --}}
@if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif

{{ $customization['step2_progress_title'] ?? 'Great progress! 🎉' }}

Your Serial Number: {{ $serial }}

{{-- Bot Message 2 --}}
@if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif

{{ $customization['step2_instruction_title'] ?? '📍 How to Find Your PIN Code' }}

@if($siteConfig->contest && isset($siteConfig->contest['qr_sample']))
PIN Code Location
@endif
1

{!! $customization['step2_instruction_step1'] ?? 'Locate the hologram sticker on your product' !!}

2

{!! $customization['step2_instruction_step2'] ?? 'Scratch the thin silver film gently to reveal the code' !!}

3

{!! $customization['step2_instruction_step3'] ?? 'Enter the PIN code in the next step' !!}

{{-- Action Buttons --}}
{{-- STEP 3: Form & PIN Entry --}}
{{-- Bot Message --}}
@if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif

{{ $customization['step3_title'] ?? 'Almost there! 🎯' }}

{{ $customization['step3_message_detailed'] ?? 'Now, please enter the PIN code you found on your hologram sticker.' }}

Verifying serial: {{ $serial }}

{{-- User Form --}}
{{-- Validation Errors Summary --}} @if($errors->any())

⚠️ Please fix the following errors:

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Name Field --}} @php $nameField = $customerFields->firstWhere('unique_key', 'name'); @endphp @if($nameField && $nameField->visible)
required ? 'required' : '' }} > @error('name') {{ $message }} @enderror
@endif {{-- Email Field --}} @php $emailField = $customerFields->firstWhere('unique_key', 'email'); @endphp @if($emailField && $emailField->visible)
required ? 'required' : '' }} > @error('email') {{ $message }} @enderror
@endif {{-- Contact/Phone Field --}} @php $contactField = $customerFields->firstWhere('unique_key', 'contact'); @endphp @if($contactField && $contactField->visible)
required ? 'required' : '' }} > @error('contact') {{ $message }} @enderror
@endif {{-- Dynamic Extra Fields --}} @foreach($customerFields as $field) @if(!in_array($field->unique_key, ['name', 'email', 'contact']) && $field->visible)
required ? 'required' : '' }} > @error('extraFields.' . $field->unique_key) {{ $message }} @enderror
@endif @endforeach {{-- PIN Code Input --}}

💡 PIN code is case-sensitive

@error('pincode') {{ $message }} @enderror
{{-- Help Link --}}
{{-- Inline Verification Result (Accordion) --}} @if($verificationResult)
{{-- SUCCESS --}} @if($verificationResult['status'] === 'success')

{{ $customization['result_success_title'] ?? '✅ Great news! The code is genuine.' }}

{{ str_replace('{site_name}', $siteConfig->name ?? 'our system', $customization['result_success_message'] ?? 'Your product has been successfully verified by {site_name}. You\'re good to go!') }}

Verified on: {{ $verificationResult['verified_at'] ? $verificationResult['verified_at']->format('M d, Y \a\t H:i') : now()->format('M d, Y \a\t H:i') }} @if(isset($verificationResult['product']) && $verificationResult['product'])
Product: {{ $verificationResult['product']->name }} @endif @if(isset($verificationResult['verified_by']) && $verificationResult['verified_by'] && $verificationResult['verified_by']->name)
Verified by: {{ $verificationResult['verified_by']->name }} @endif

📊 Verification attempt: {{ $verificationResult['attempts'] ?? 1 }} out of {{ $maxAttempts }} tries

{{-- Product Information --}} @if(isset($verificationResult['product']) && $verificationResult['product'])

📦 Product Information

Product: {{ $verificationResult['product']->name }}
@if($verificationResult['product']->code)
Code: {{ $verificationResult['product']->code }}
@endif @if($verificationResult['product']->sku)
SKU: {{ $verificationResult['product']->sku }}
@endif @if($verificationResult['product']->kkm)
KKM: {{ $verificationResult['product']->kkm }}
@endif @if($verificationResult['product']->manufacture_dt)
Manufactured: {{ $verificationResult['product']->manufacture_dt->format('M Y') }}
@endif @if($verificationResult['product']->expiry_dt)
Expiry: {{ $verificationResult['product']->expiry_dt->format('M Y') }}
@endif @if($verificationResult['product']->halal_status)
{{-- JAKIM Halal Logo SVG --}} {{-- Outer Circle (Green) --}} {{-- Inner Circle (White) --}} {{-- Crescent Moon (Green) --}} {{-- Large circle --}} {{-- Cutout circle to create crescent --}} {{-- Star (Green) --}} {{-- "HALAL" Text Arc (Top) --}} HALAL {{-- "MALAYSIA" Text Arc (Bottom) --}} MALAYSIA

☪️ Halal Certified

JAKIM Malaysia

@endif
@endif {{-- Seller Information --}} @if(isset($verificationResult['sellers']) && $verificationResult['sellers']->count() > 0)

👤 Authorized Seller

@foreach($verificationResult['sellers'] as $seller)

{{ $seller->name }}

ID: {{ $seller->seller_id }}

Verified
@if($seller->email || $seller->phone)
@if($seller->email) @endif @if($seller->phone) @endif
@endif @if($seller->website || $seller->facebook || $seller->instagram || $seller->twitter)

Follow on social media:

@if($seller->website) 🌐 Website @endif @if($seller->facebook) 📘 Facebook @endif @if($seller->instagram) 📷 Instagram @endif @if($seller->twitter) 🐦 Twitter @endif
@endif
💡 This product is distributed by an authorized seller. Contact them for support.
@endforeach
@endif {{-- Contest Promotion Image (for genuine products) --}} @if(!$verificationResult['is_lucky'] && $siteConfig->contest && isset($siteConfig->contest['contest_promotion_image']))
Contest Promotion
@endif
@endif {{-- WARNING (Already Used) --}} @if($verificationResult['status'] === 'warning')

{{ $customization['result_warning_title'] ?? '⚠️ This code has already been verified.' }}

{!! str_replace('{used_at}', '' . $verificationResult['used_at']->format('M d, Y \a\t H:i') . '', $customization['result_warning_message'] ?? 'The product was first verified on {used_at}. This could mean the code was used before, or you\'re verifying again.') !!}

📊 Verification attempt: {{ $verificationResult['attempts'] ?? 1 }} out of {{ $maxAttempts }} tries ({{ $maxAttempts - ($verificationResult['attempts'] ?? 1) }} remaining)

{{-- Contest Promotion Image --}} @if($siteConfig->contest && isset($siteConfig->contest['contest_promotion_image']))
Contest Promotion
@endif
@endif {{-- ERROR (Invalid or Max Attempts) --}} @if($verificationResult['status'] === 'error')
@if(isset($verificationResult['attempts']) && $verificationResult['attempts'] >= $maxAttempts)

{{ $customization['result_max_attempts_title'] ?? '🚫 Maximum attempts reached' }}

{{ str_replace('{max_attempts}', $maxAttempts, $customization['result_max_attempts_message'] ?? 'You\'ve used all {max_attempts} verification attempts for this code. For your security, this code has been temporarily locked.') }}

{{ $customization['result_max_attempts_contact'] ?? 'Please contact our support team for assistance.' }}

@else

{{ $customization['result_error_title'] ?? '❌ Oops! The PIN code doesn\'t match.' }}

{{ $customization['result_error_message'] ?? 'The PIN you entered doesn\'t match our records for this serial number. Please double-check and try again.' }}

📊 Verification attempt: {{ $verificationResult['attempts'] ?? 1 }} out of {{ $maxAttempts }} tries ({{ $maxAttempts - ($verificationResult['attempts'] ?? 1) }} remaining)

{!! $customization['result_error_tip'] ?? '💡 Tip: Make sure you\'re scratching the correct silver film and entering the code exactly as shown.' !!}

@endif
@endif
@endif {{-- Buttons --}}
@if($verificationResult && $verificationResult['status'] === 'success') {{-- Success: Show Contact and Start Over --}} @if($siteConfig->contest && isset($siteConfig->contest['whatsapp'])) 📱 Contact Us @endif @elseif($verificationResult && $verificationResult['status'] === 'warning') {{-- Warning: Show Start Over --}} @elseif($verificationResult && $verificationResult['status'] === 'error' && isset($verificationResult['attempts']) && $verificationResult['attempts'] >= $maxAttempts) {{-- Max Attempts: Show Contact Support --}} @if($siteConfig->contest && isset($siteConfig->contest['whatsapp'])) 📱 Contact Support @endif @else {{-- Default: Show Back and Verify --}} @endif
{{-- STEP 4: Result Display --}}
@if($verificationResult) {{-- SUCCESS: Genuine Product --}} @if($verificationResult['status'] === 'success')
{{-- Chatbot Avatar --}} @if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif {{-- Chat Bubble --}}

🎉 Excellent News!

Your product is 100% genuine and authentic! It has been successfully verified by {{ $siteConfig->name ?? 'our system' }}. You can shop with confidence!

{{-- Contest Promotion Image (for genuine products, not lucky winners) --}} @if(!$verificationResult['is_lucky'] && $siteConfig->contest && isset($siteConfig->contest['contest_promotion_image']))
Contest Promotion
@endif

Serial Number: {{ $serial }}

PIN Code: {{ substr($pincode, 0, 3) }}***{{ substr($pincode, -2) }}

Verification check: {{ $verificationResult['attempts'] ?? 1 }} of {{ $maxAttempts }} attempts used

@if($verificationResult['is_lucky'])
{{-- Chatbot Avatar --}} @if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
🎁
@endif {{-- Chat Bubble --}}

🎊 Congratulations, You're a Lucky Winner!

{{ $siteConfig->descr ?? 'Amazing! You have won a special prize. Please contact us to claim your reward and celebrate your win!' }}

{{-- Lucky Draw Winner Image --}} @if($siteConfig->contest && isset($siteConfig->contest['lucky_draw_image']))
Lucky Draw Winner
@endif
@endif
@if($siteConfig->contest && isset($siteConfig->contest['whatsapp'])) 📱 Contact via WhatsApp @endif
{{-- WARNING: Already Used --}} @elseif($verificationResult['status'] === 'warning')
{{-- Chatbot Avatar --}} @if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif {{-- Chat Bubble --}}

⚠️ Previously Verified

I notice this code has already been verified before. The product is genuine, but it was already checked on a previous occasion.

{{-- Contest Promotion Image --}} @if($siteConfig->contest && isset($siteConfig->contest['contest_promotion_image']))
Contest Promotion
@endif

Serial Number: {{ $serial }}

@if(isset($verificationResult['used_at']))

First Verified: {{ $verificationResult['used_at']->format('M d, Y \a\t H:i') }}

@endif

Current check: {{ $verificationResult['attempts'] ?? 1 }} of {{ $maxAttempts }} attempts ({{ $maxAttempts - ($verificationResult['attempts'] ?? 1) }} remaining)

{{-- ERROR: Invalid/Fake or Max Attempts --}} @elseif($verificationResult['status'] === 'error')
{{-- Chatbot Avatar --}} @if($siteConfig->contest && isset($siteConfig->contest['chatbot_icon']))
Assistant
@else
@endif {{-- Chat Bubble --}}
@if(isset($verificationResult['attempts']) && $verificationResult['attempts'] >= $maxAttempts)

🔒 Security Locked

I'm sorry, but this code has been locked due to multiple unsuccessful verification attempts ({{ $maxAttempts }} out of {{ $maxAttempts }} tries used). This is a security measure to protect against fraudulent attempts.

Serial Number: {{ $serial }}

Need help? Contact us:

📧 {{ $siteConfig->email ?? 'support@example.com' }}

@if($siteConfig->contest && isset($siteConfig->contest['whatsapp']))

📞 {{ $siteConfig->contest['whatsapp'] }}

@endif
@else

❌ Verification Failed

I couldn't verify this product. The PIN code doesn't match our records for this serial number. Please double-check the code and try again carefully.

💡 This could happen if:

  • • The PIN code was entered incorrectly
  • • The product may be counterfeit
  • • The hologram sticker was damaged

Attempts used: {{ $verificationResult['attempts'] ?? 1 }} of {{ $maxAttempts }} ({{ $maxAttempts - ($verificationResult['attempts'] ?? 1) }} remaining)

@endif
@if(!isset($verificationResult['attempts']) || $verificationResult['attempts'] < $maxAttempts) @endif @if($siteConfig->contest && isset($siteConfig->contest['whatsapp'])) 📱 Contact Support @endif
@endif @endif
{{-- Footer --}}
@php $footerText = $siteConfig->branding['footer_text'] ?? ''; @endphp @if($footerText)

{!! $footerText !!}

@else

© {{ date('Y') }} {{ $siteConfig->name ?? 'GB Secure' }}

@endif
{{-- Lucky Winner Modal --}} @if($verificationResult && $verificationResult['is_lucky'] && $verificationResult['status'] === 'success')
{{-- Backdrop --}}
{{-- Modal Content --}}
{{-- Close Button --}} {{-- Modal Header --}}
🎁

{{ $siteConfig->lucky_winner_modal_title ?? '🎉 CONGRATULATIONS! 🎉' }}

{{ $siteConfig->lucky_winner_modal_subtitle ?? "You're a Lucky Winner!" }}

🌟
{{-- Lucky Draw Winner Image --}} @if($siteConfig->contest && isset($siteConfig->contest['lucky_draw_image']))
Lucky Draw Winner
@endif {{-- Message --}}
@if($siteConfig->lucky_winner_modal_message) {!! $siteConfig->lucky_winner_modal_message !!} @else {{ $siteConfig->descr ?? 'Amazing! You have won a special prize. Please contact us to claim your reward and celebrate your win!' }} @endif
{{-- Serial Number Info --}}

Winning Serial: {{ $serial }}

{{-- Action Buttons --}}
@if($siteConfig->contest && isset($siteConfig->contest['whatsapp'])) 📱 Claim Your Prize Now! @endif
@endif {{-- Animations & Chat Bubble Styling --}}