@extends('layouts.seller')

@section('title', 'Promotion Packages')

@section('content')
<div x-data="{ currency: '{{ request()->query('currency', Auth::user()->seller->country == 'India' ? 'INR' : 'USD') }}' }">
    <div class="page-header">
        <div>
            <h4 class="page-title">Promotion Packages</h4>
            <p class="text-muted mb-0">Boost your products visibility and get more leads!</p>
        </div>
        <div class="d-flex align-items-center gap-3">
            <!-- Currency Toggle -->
            <div class="bg-white p-1 rounded-pill border shadow-sm d-flex">
                <button @click="currency = 'INR'" 
                        :class="currency === 'INR' ? 'bg-primary text-white shadow-sm' : 'text-muted hover:bg-light'"
                        class="btn btn-sm rounded-pill fw-bold px-3 transition-all">
                    INR (₹)
                </button>
                <button @click="currency = 'USD'" 
                        :class="currency === 'USD' ? 'bg-primary text-white shadow-sm' : 'text-muted hover:bg-light'"
                        class="btn btn-sm rounded-pill fw-bold px-3 transition-all">
                    USD ($)
                </button>
            </div>
        </div>
    </div>

    <!-- Bilingual Disclaimer -->
    <div class="card border-0 shadow-sm rounded-4 mb-4 overflow-hidden" 
         style="background: linear-gradient(135deg, #fff 0%, #fffbf2 100%); border-left: 5px solid #f97316 !important;">
        <div class="card-body p-4">
            <div class="d-flex align-items-start gap-4">
                <div class="rounded-circle d-flex align-items-center justify-content-center flex-shrink-0" 
                     style="width: 50px; height: 50px; background: #fff5eb; color: #f97316;">
                    <i class="bi bi-shield-lock-fill fs-4"></i>
                </div>
                <div>
                    <h6 class="fw-bold text-dark mb-2">Important Note / महत्वपूर्ण सूचना</h6>
                    <div class="mb-3">
                        <p class="mb-1 text-dark" style="font-size: 0.95rem; line-height: 1.5;">
                            <span class="badge bg-orange me-1">English</span> 
                            To use Promotion Packages and unlock features like <strong class="text-orange">seller contact details unlock</strong>, an active Subscription Plan is mandatory.
                        </p>
                    </div>
                    <div>
                        <p class="mb-0 text-muted" style="font-size: 0.95rem; font-style: italic; line-height: 1.5;">
                            <span class="badge bg-secondary me-1">Hinglish</span>
                            Promotion packages ka use karne aur <strong class="text-orange">seller contact details</strong> unlock karne ke liye aapke paas active <strong class="text-dark">Subscription Plan</strong> hona zaroori hai.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    @include('partials.promotion-packages-list')

    <style>
        .bg-orange { background-color: #f97316; color: white; }
        .text-orange { color: #f97316; }
    </style>
</div>
@endsection
