Morio Sacco

Loan Repayment Receipt

Dear {{ $user->full_name }},

Thank you for your loan repayment. This email serves as an official receipt for the transaction below.

Loan Repayment Receipt

Receipt Number: {{ $transaction->id }}

Member Name: {{ $user->full_name }}

Membership Number: {{ $user->membership->membership_number ?? 'N/A' }}

Email: {{ $user->email }}

Phone: {{ $user->phone_number }}

Loan Information

Loan ID: {{ $loan->id }}

Principal Amount: KSh {{ number_format($loan->amount, 2) }}

Outstanding Balance: KSh {{ number_format($loan->balance, 2) }}

Transaction Details

Transaction ID: {{ $transaction->mpesa_transaction_id ?? 'N/A' }}

Payment Method: {{ $transaction->payment_method ? ucwords(str_replace('_', ' ', $transaction->payment_method)) : 'Cash' }}

@if($transaction->mpesa_phone_number)

M-Pesa Phone Number: {{ $transaction->mpesa_phone_number }}

@endif

Transaction Date: {{ $transaction->processed_at ? $transaction->processed_at->format('d M Y H:i') : $transaction->created_at->format('d M Y H:i') }}

Description: {{ $transaction->description ?? 'Loan Repayment' }}

Amount Paid

KSh {{ number_format($transaction->amount, 2) }}

Status: {{ ucfirst($transaction->status) }}

Your loan repayment has been processed successfully. You can view your updated loan balance in your account dashboard.

You can access your account at: Login to Your Account

If you have any questions about this transaction, please contact our support team with the receipt number above.

Thank you for your continued commitment to your loan repayment!

Best regards,
Morio Sacco Finance Department