<!DOCTYPE html>
<html>
<head>
    <title>Calibration Table</title>
    <style>
        table {
            border-collapse: collapse;
            width: 60%;
        }
        th, td {
            border: 1px solid #444;
            padding: 8px;
            text-align: left;
        }
        th {
            background: #f2f2f2;
        }
    </style>
</head>
<body>
    {{-- <h5>{{ $name }}</h5> --}}
    {{-- <h5>{!! $name !!}</h5> --}}
    <div style="text-align: center; font-weight: bold;">
        {{ $company }}
    </div>
<br>
<p>{!! $greeting !!}</p>
    <table style="table-layout: auto; width: 100%; border-collapse: collapse;">
    <thead>
        <tr>
            <th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">No</th>
            <th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2; white-space: nowrap;">Plant</th>
            <th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2; white-space: nowrap;">Line</th>
            <th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Target Quantity</th>
            <th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Line Type</th>
            <th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Production Quantity</th>
        </tr>
    </thead>
    <tbody>
        @foreach($tableData as $row)
        <tr>
            <td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['no'] }}</td>
            <td style="border: 1px solid #444; padding: 8px; text-align: center; white-space: nowrap;">{{ $row['plant'] }}</td>
            <td style="border: 1px solid #444; padding: 8px; text-align: center; white-space: nowrap;">{{ $row['line'] }}</td>
            <td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['targetQuantity'] }}</td>
            <td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['type'] }}</td>
            <td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['productionQuantity'] }}</td>
        </tr>
        @endforeach
    </tbody>
    </table>

    <p>{!! $wishes !!}</p>
</body>
</html>
