@component('mail::message')
# Hello @if($data['type'] == 'decline') {{ $data['first_name'] }} @elseif($data['type'] == 'checkout') {{ $data['first_name'] }} @elseif($data['type'] == 'approve') {{ $data['first_name'] }} @elseif($data['type'] == 'decline') {{ $data['first_name'] }} @elseif($data['type'] == 'withdraw') Admin @else There! @endif

<br>




@if($data['type'] == 'checkout')
Your Order Request with tracking code <b>{{ $data['ref_id'] }}</b> has been submitted and would be reviewed and approved upon confirmation of your payment. 
<br>
Please take note of your tracking code, as it’ll be requested of you at the delivery venue, to claim your goods.
<br><br>
<b>Products Ordered:</b><br>
    <ul>
        @foreach($cart as $prod)
            <li>Product: <?= $prod['name']; ?></li>
            <li>Price: &#8358;<?= number_format($prod['price']); ?></li>
            <li>Quanity: <?= $prod['quantity']; ?></li>
            <hr>
        @endforeach
     </ul>
<b>Total:</b> &nbsp; &nbsp; <b>&#8358;{{ number_format($data['total']) }}</b>
<hr>
<br><br>

@elseif($data['type'] == 'approve')
Your Order Request <b>{{ $data['ref_id'] }}</b> has been reviewed and is now Approved. <br>
Our dispatch Team will get to you through your submitted mobile number for further instructions on receiving your Products paid for. <br>
In case of any issues faced, please kindly click the button below to contact us.
<br><br>

@elseif($data['type'] == 'decline')
Your purchase request with tracking code <b>{{ $data['ref_id'] }}</b> has been declined, due to a discontinued/unsuccessful payment from your end. 
<br>
To make a new order, please kindly click the button below and follow the process to completion.
<br><br>

@elseif($data['type'] == 'withdraw')
{{ $data['first_name'] }} has made a withdrawal request, the details are below:
<br><br>
<b>Withdrawal Details:</b><br>
    <ul>
            <li>User's Name: {{ $data['first_name'] }} {{ $data['last_name'] }}</li>
            <li>User's Email: {{ $data['email'] }}</li>
            <li>Amount To Withdraw: &#8358;{{ number_format($data['amount']) }}</li>
            <li>Date: {{ date('M j Y', strtotime($data['date'])) }}</li>
            <hr>
     </ul>
<br><br>

@else
{{$data['message']}}
@endif





@if($data['type'] == 'checkout')

@elseif($data['type'] == 'withdraw')

@elseif($data['type'] == 'approve')
@component('mail::button', ['url' => 'https://www.ge-as.com'])
Contact Us
@endcomponent

@elseif($data['type'] == 'decline')
@component('mail::button', ['url' => 'https://www.ge-as.com/login'])
Shop More
@endcomponent

@elseif($data['type'] == 'request_approve')
@component('mail::button', ['url' => 'https://ge-as.com/login'])
Login Here
@endcomponent

@else
@component('mail::button', ['url' => 'https://ge-as.com/ai-bot-plans'])
Click Here
@endcomponent
@endif

Thanks,<br>
{{ config('app.name') }}
@endcomponent
