<x-mail::message>
@if($isAdmin)
# New {{ $bill->getTypeLabel() }} Submission

A new {{ strtolower($bill->getTypeLabel()) }} request has been submitted and requires your attention.

**Submitted By:** {{ $user->name }} ({{ $user->email }})

@else
# {{ $bill->getTypeLabel() }} Submitted

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

Your {{ strtolower($bill->getTypeLabel()) }} request has been submitted successfully and 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 }}  
**Payment Frequency:** {{ ucfirst($bill->payment_frequency) }}  
**Payment Method:** {{ ucfirst(str_replace('_', ' ', $bill->payment_method)) }}  
@if($bill->consistency)
**Consistency:** {{ ucfirst($bill->consistency) }}  
@endif
@elseif($bill->isSchoolFees())
**School Name:** {{ $bill->school_name }}  
**Admission No:** {{ $bill->admission_no }}  
**Fee Type:** {{ ucfirst($bill->fee_type) }}  
@if($bill->semester)
**Semester:** {{ ucfirst($bill->semester) }}  
@endif
@if($bill->payment_history)
**Payment History:** {{ ucfirst($bill->payment_history) }}  
@endif
@endif

@if($bill->description)
**Description:** {{ $bill->description }}
@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') }}  
**Submitted At:** {{ \Carbon\Carbon::parse($bill->submitted_at)->format('F j, Y H:i') }}  
**Status:** {{ ucfirst($bill->status) }}

@if($isAdmin)
<x-mail::button :url="config('app.url') . '/admin/bills'">
Review Request
</x-mail::button>
@else
<x-mail::button :url="config('app.url') . '/bills'">
View My Requests
</x-mail::button>

We will notify you once your request has been reviewed.
@endif

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