<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Print Label</title>
    <style>
        /* Set label dimensions */
        @page {
            size: 4cm 2cm;
            margin: 0;
        }
        body {
            width: 4cm;
            height: 2cm;
            font-size: 10pt;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            margin: 0;
            flex-direction: column
        }
        p {
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
    <p> {{ $name }}</p>
    <p>{{ $phone }}</p>

    <script>
        window.print();
    </script>
</body>
</html>
