{{-- blade-formatter-disable --}}
@component('mail::message')
# Hello {{$foramin  ? 'Admin' : "$user->name $user->middlename $user->lastname" }}
@if ($foramin)
This is to inform you that {{$user->name}} have made a transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->accountname}}, kindly login to your bank website  to review and take neccesary action.
@else
@if ($withdrawal->status == 'Processed')
@if($withdrawal->payment_mode =='Wire Transfer')
This is to inform you that your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->accountname}},Account number:{{$withdrawal->accountnumber}},  Bank:{{$withdrawal->bankname}} has been approved and sent.
@elseif($withdrawal->payment_mode =='Cryptocurrency')  
This is to inform you that your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->bankname}} wallet {{$withdrawal->accountname}} has been approved and sent.
@elseif($withdrawal->payment_mode =='Western Union')  
This is to inform you that your transfer request of {{$user->currency.$withdrawal->amount}} using {{$withdrawal->bankname}} to {{$withdrawal->accountname}},{{$withdrawal->country}},{{$withdrawal->city}} has been approved and sent.
@else
This is to inform you that your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->bankname}} account with email {{$withdrawal->accountname}} has been approved and sent.
@endif
@else
@if($withdrawal->payment_mode =='Wire Transfer')
 Your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->accountname}}, {{$withdrawal->bankname}} has been confirmed and beneficiary is expected to be credited within 
 72hours.


<p><b>Details of the transaction are shown below;</b></p>
<b>Account Number: {{$withdrawal->accountnumber}}</b><br>
<b>Account Name:{{$withdrawal->accountname}} </b><br>
<b>Bank:{{$withdrawal->bankname}} </b><br>
<b>Description: {{$withdrawal->Description}}</b><br>
<b>Total Amount: {{$user->currency.$withdrawal->amount}}</b><br>
<b>Date: {{ \Carbon\Carbon::parse($withdrawal->created_at)->toDayDateTimeString() }}</b><br>
<b>Available Balance: {{$user->currency.$withdrawal->bal}}</b><br>

@elseif($withdrawal->payment_mode =='Cryptocurrency')  
Your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->bankname}} wallet address {{$withdrawal->accountnumber}} has been confirmed and beneficiary is expected to be credited within an hour.         
<p><b>Details of the transaction are shown below;</b></p>
<b>wallet address: {{$withdrawal->accountnumber}}</b><br>
<b>Description: {{$withdrawal->Description}}</b><br>
<b>Payment Mode: {{$withdrawal->payment_mode}}</b><br>
<b>Total Amount: {{$user->currency.$withdrawal->amount}}</b><br>
<b>Date: {{ \Carbon\Carbon::parse($withdrawal->created_at)->toDayDateTimeString() }}</b><br>
<b>Available Balance: {{$user->currency.$withdrawal->bal}}</b><br>
@elseif($withdrawal->payment_mode =='Western Union')  
Your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->accountname}} using {{$withdrawal->bankname}} has been confirmed and beneficiary is expected to be credited within an hour.         
<p><b>Details of the transaction are shown below;</b></p>
<b>Account name: {{$withdrawal->accountname}}</b><br>
<b>Payment Mode: {{$withdrawal->bankname}}</b><br>
<b>Country: {{$withdrawal->country}}</b><br>
<b>City: {{$withdrawal->city}}</b><br>
<b>Zipcod: {{$withdrawal->zipcode}}</b><br>
<b>Description: {{$withdrawal->Description}}</b><br>
<b>Total Amount: {{$user->currency.$withdrawal->amount}}</b><br>
<b>Date: {{ \Carbon\Carbon::parse($withdrawal->created_at)->toDayDateTimeString() }}</b><br>
<b>Available Balance: {{$user->currency.$withdrawal->bal}}</b><br>
 @else
Your transfer request of {{$user->currency.$withdrawal->amount}} to {{$withdrawal->accountname}} using {{$withdrawal->bankname}} has been confirmed and beneficiary is expected to be credited within an hour.         
<p><b>Details of the transaction are shown below;</b></p>
<b>Email: {{$withdrawal->accountname}}</b><br>
<b>Payment Mode: {{$withdrawal->payment_mode}}</b><br>
{{-- <b>Description: {{$withdrawal->Description}}</b><br> --}}
<b>Total Amount: {{$user->currency.$withdrawal->amount}}</b><br>
<b>Date: {{ \Carbon\Carbon::parse($withdrawal->created_at)->toDayDateTimeString() }}</b><br>
<b>Available Balance: {{$user->currency.$withdrawal->bal}}</b><br>
@endif
@endif    
@endif
Thanks,
<br>
{{ config('app.name') }}
@endcomponent
{{-- blade-formatter-disable --}}
