<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ $data->product_name }}</title>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
    <style>
        div#social-links {
            margin: 0 auto;
            max-width: 500px;
        }
        div#social-links ul li {
            display: inline-block;
        }
        div#social-links ul li a {
            padding: 20px;
            border: 1px solid #ccc;
            margin: 1px;
            font-size: 30px;
            color: #222;
            background-color: #ccc;
        }
    </style>
</head>
<body>
    <div class="container mt-4">
        <h2 class="mb-5 text-center">Laravel Social Share Buttons Example</h2>
        @php
        $imageArray = explode(',', $data->product_image);
        $firstImage = $imageArray[0];
    @endphp
        <!-- Display product image -->
        <img src="{{ asset('admin/assets/img/product/' . $firstImage) }}" alt="{{ $data->product_name }}" style="max-width: 100%; height: auto;">

        <!-- Display social share buttons -->
        <div id="social-links">
            {!! $shareComponent !!}
        </div>
    </div>
</body>
</html>
