<!DOCTYPE html>
<html>
<head>
    <title>Matchmaking Report</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 8px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
        span {
            font-size: 9px;
        }
    </style>
</head>
<body>
<h1>Matchmaking Report</h1>
<table>
    <thead>
    <tr>
        <th>Sl No</th>
        <th>Date</th>
        <th>User 1</th>
        <th>User 2</th>
        <th>Score</th>
    </tr>
    </thead>
    <tbody>
    @foreach($matches as $index => $match)
        <tr>
            <td>{{ $index + 1 }}</td>
            <td>{{ \Carbon\Carbon::parse($match->updated_at)->format('d M, Y') }}</td>
            <td>{{ $match->user_name }}</td>
            <td>{{ $match->match_user_name }}</td>
            <td>{{ $match->match_percentage }}%</td>
        </tr>
    @endforeach
    </tbody>
</table>
</body>
</html>
