<x-mail::message>
# {{ $bill->getTypeLabel() }} Status Update

Hi {{ $bill->user->name ?? $bill->user->username }},

Your {{ strtolower($bill->getTypeLabel()) }} request status has been updated.

---

## Status Change

| Previous Status | New Status |
|:----------------|:-----------|
| {{ ucfirst($oldStatus) }} | **{{ ucfirst($newStatus) }}** |

@if($newStatus === 'approved')
🎉 **Congratulations!** Your payment request has been approved.
@elseif($newStatus === 'accepted')
✅ Your payment request has been accepted and is being processed.
@elseif($newStatus === 'rejected')
❌ Unfortunately, your payment request has been rejected.
@if($bill->admin_notes)

**Reason:** {{ $bill->admin_notes }}
@endif
@elseif($newStatus === 'pending')
⏳ Your payment request is pending review.
@endif

---

## Request Details

**Reference ID:** {{ $bill->offer_id }}  
**Type:** {{ $bill->getTypeLabel() }}

**Payer:** {{ $bill->payer_name }}  
**Recipient:** {{ $bill->recipient_name }}

@if($bill->isRent())
**Property Address:** {{ $bill->property_address }}  
@elseif($bill->isSchoolFees())
**School Name:** {{ $bill->school_name }}  
**Admission No:** {{ $bill->admission_no }}  
@endif

---

## Payment Summary

| Description | Amount |
|:------------|-------:|
| Original Amount | {{ number_format($bill->original_amount, 2) }} |
| Discount ({{ $bill->discount_percentage }}%) | -{{ number_format($bill->discount_amount, 2) }} |
| Cashback ({{ $bill->cashback_percentage }}%) | {{ number_format($bill->cashback_amount, 2) }} |
| **Final Amount** | **{{ number_format($bill->final_amount, 2) }}** |

---

**Due Date:** {{ \Carbon\Carbon::parse($bill->due_date)->format('F j, Y') }}  
**Last Updated:** {{ \Carbon\Carbon::parse($bill->processed_at)->format('F j, Y H:i') }}

<x-mail::button :url="config('app.url') . '/bills'">
View My Requests
</x-mail::button>

If you have any questions about this update, please contact our support team.

Thanks,<br>
{{ site('name') }}
</x-mail::message>
