<!DOCTYPE html>
<html>
<head>
    <title>Your Final Settlement</title>
</head>
<body>
    <h2>Final Settlement Details</h2>
    <p>Dear {{ $employee->name }},</p>
    <p>Your final settlement has been calculated as follows:</p>
    
    <table border="1" cellpadding="10">
        <tr><th>Component</th><th>Amount</th></tr>
        @foreach($breakdown as $component => $amount)
            <tr>
                <td>{{ ucwords(str_replace('_', ' ', $component)) }}</td>
                <td>${{ number_format($amount, 2) }}</td>
            </tr>
        @endforeach
        <tr style="font-weight: bold;">
            <td>TOTAL</td>
            <td>${{ number_format($payslip->amount, 2) }}</td>
        </tr>
    </table>
    
    <p>Payment will be processed within 7 days.</p>
</body>
</html>