<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Payment Receipt - {{ $reference }}</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-size: 12px;
            line-height: 1.6;
            color: #333;
            margin: 40px;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .header h1 {
            color: #27ae60;
            font-size: 28px;
            margin-bottom: 5px;
        }
        .header p {
            color: #7f8c8d;
            margin: 0;
        }
        .receipt-box {
            border: 2px solid #27ae60;
            border-radius: 10px;
            padding: 30px;
            margin: 20px 0;
        }
        .status {
            text-align: center;
            padding: 15px;
            background-color: #d5f4e6;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .status h2 {
            color: #27ae60;
            margin: 0;
            font-size: 18px;
        }
        table {
            width: 100%;
            margin: 20px 0;
        }
        table td {
            padding: 10px 0;
            border-bottom: 1px dashed #ddd;
        }
        table td:first-child {
            color: #7f8c8d;
            width: 40%;
        }
        table td:last-child {
            font-weight: bold;
            text-align: right;
        }
        .amount {
            text-align: center;
            font-size: 32px;
            font-weight: bold;
            color: #2c3e50;
            margin: 30px 0;
        }
        .footer {
            margin-top: 40px;
            text-align: center;
            font-size: 10px;
            color: #7f8c8d;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>PAYMENT RECEIPT</h1>
        <p>MSL Assets & Investments</p>
    </div>

    <div class="receipt-box">
        <div class="status">
            <h2>✓ PAYMENT CONFIRMED</h2>
        </div>

        <div class="amount">
            {{ $currency }} {{ $amount }}
        </div>

        <table>
            <tr>
                <td>Investment Reference</td>
                <td>{{ $reference }}</td>
            </tr>
            <tr>
                <td>Payment Reference</td>
                <td>{{ $payment_reference }}</td>
            </tr>
            <tr>
                <td>Investor Name</td>
                <td>{{ $investor_name }}</td>
            </tr>
            <tr>
                <td>Payment Method</td>
                <td>{{ ucfirst($payment_method ?? 'Card') }}</td>
            </tr>
            <tr>
                <td>Payment Date</td>
                <td>{{ $payment_date }}</td>
            </tr>
            <tr>
                <td>Receipt Generated</td>
                <td>{{ $date }}</td>
            </tr>
        </table>
    </div>

    <div class="footer">
        <p>This is an official receipt for your investment payment.</p>
        <p>For any queries, please contact investors@meatsoko.com</p>
        <p>MSL Assets & Investments | Nairobi, Kenya</p>
    </div>
</body>
</html>
