<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Print QR - {{ $dealer->dealer_name }}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
        }

        .print-card {
            background: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 400px;
            width: 100%;
        }

        @media print {
            body {
                background: #fff;
            }

            .print-card {
                box-shadow: none;
                padding: 0;
            }

            .no-print {
                display: none !important;
            }
        }
    </style>
</head>

<body onload="window.print()">

    <div class="print-card">
        <h4 class="mb-1">{{ $dealer->dealer_name }}</h4>
        <p class="text-muted mb-4">{{ $dealer->institute_name }}</p>

        <div class="d-flex justify-content-center mb-4">
            {!! QrCode::size(200)->encoding('UTF-8')->generate($qrData) !!}
        </div>

        <p class="mb-1"><strong>Sale Point:</strong> {{ $dealer->sale_point }}</p>
        <p class="mb-1"><strong>Mobile:</strong> {{ $dealer->mobile_number }}</p>

        <button onclick="window.print()" class="btn btn-primary mt-4 w-100 no-print">Print Now</button>
    </div>

</body>

</html>