@extends('user.mail.app')
@section('content')
<table class="wrapper table" width="100%" cellpadding="0" cellspacing="0"  role="presentation">
    <tr>
        <td align="center td">
            <table class="content table-2" width="100%" cellpadding="0" cellspacing="0" role="presentation">
                <tr>
                    <td class="header td-2">
                        <a href="{{ url('/') }}" class="href">
                        </a>
                    </td>
                </tr>
                <tr>
                    <td class="body td-3" width="100%" cellpadding="0" cellspacing="0">
                        <table class="inner-body table-3" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
                            <tr>
                                <td class="content-cell td-4">
                                    <h1 class="h1">
                                        Halo {{ $receiver['name'] }} !
                                    </h1>
                                    @if ($content['status'] == 'Pending')
                                    <p class="p">
                                        Terimakasih telah melakukan pemesanan, berikut adalah informasi pesanan anda.
                                    </p>
                                    @elseif ($content['status'] == 'Processing')
                                    <p class="p">
                                        Pesanan anda sedang diproses, berikut adalah informasi pesanan anda.
                                    </p>
                                    @elseif ($content['status'] == 'Success')
                                    <p class="p">
                                        Pesanan anda berhasil diproses, berikut adalah informasi pesanan anda.
                                    </p>
                                    @elseif ($content['status'] == 'Error')
                                    <p class="p">
                                        Pesanan anda gagal diproses, berikut adalah informasi pesanan anda.
                                    </p>
                                    @elseif ($content['status'] == 'Partial')
                                    <p class="p">
                                        Pesanan anda gagal diproses, berikut adalah informasi pesanan anda.
                                    </p>
                                    @endif
                                    <table class="subcopy table-7" width="100%" cellpadding="0" cellspacing="0" role="presentation">
                                        <tr>
                                            <td class="td-6">
                                                <p class="p">
                                                - <b>ID:</b> {{ $content['id'] }}<br />
                                                - <b>Layanan:</b> {{ $content['service'] }}<br />
                                                - <b>Target:</b> {{ $content['target'] }}<br />
                                                - <b>Jumlah:</b> # {{ number_format($content['quantity'],0,',','.') }}<br />
                                                - <b>Harga:</b> Rp {{ number_format($content['price'],0,',','.') }}<br />
                                                - <b>Status:</b> {{ $content['status'] }}<br />
                                                - <b>Sumber:</b> {{ $content['source'] }}<br />
                                                - <b>Alamat IP:</b> {{ $content['ip_address'] }}<br />
                                                </p>
                                            </td>
                                        </tr>
                                    </table>
                                    @if ($content['status'] == 'Pending')
                                    <table class="subcopy table-7" width="100%" cellpadding="0" cellspacing="0" role="presentation">
                                        <tr>
                                            <td class="td-6">
                                                <p class="p" style="font-size: 14px;">
                                                Kami akan segera memproses pesanan anda, silahkan untuk menunggu.
                                                </p>
                                            </td>
                                        </tr>
                                    </table>
                                    @elseif ($content['status'] == 'Error' OR $content['status'] == 'Partial')
                                    <table class="subcopy table-7" width="100%" cellpadding="0" cellspacing="0" role="presentation">
                                        <tr>
                                            <td class="td-6">
                                                <p class="p" style="font-size: 14px;">
                                                Kami akan segera melakukan pengembalian dana kepada akun anda, silahkan untuk menunggu.
                                                </p>
                                            </td>
                                        </tr>
                                    </table>
                                    @endif
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
                        <table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
                            <tr>
                                <td class="content-cell td-7" align="center">
                                    <p class="p-2">
                                        © {{ date('Y') }} {{ website_config('main')->website_name }}. All rights reserved.
                                    </p>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
@endsection