<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>mivita.care</title>

    <style type="text/css">
        img {
            max-width: 600px;
            outline: none;
            text-decoration: none;
            -ms-interpolation-mode: bicubic;
        }

        a {
            text-decoration: none;
            border: 0;
            outline: none;
            color: #919f7a;
        }
        a:hover {
            color: #b6b600;
        }
        a img {
            border: none;
        }

        td, h1, h2, h3 {
            font-family: Helvetica, Verdana, Arial, sans-serif;
            font-weight: 400;
        }

        td {
            text-align: left;
        }

        body {
            -webkit-font-smoothing: antialiased;
            -webkit-text-size-adjust: none;
            width: 100%;
            height: 100%;
            color: #37302d;
            background: #ffffff;
            font-size: 15px;
            line-height: 26px
        }

        table {
            border-collapse: separate !important;
        }

        .headline {
            color: #37302d;
            font-size: 18px;
        }

        .sub_headline {
            color: #788662;
            font-size: 15px;
        }

        .force-full-width {
            width: 100% !important;
        }

        hr {
            border: none;
            border-top: 1px solid #b7c59e;
        }

    </style>
</head>
<body class="body" style="padding:0; margin:0; display:block; background:#f8f8f8; -webkit-text-size-adjust:none" bgcolor="#f8f8f8">

<div style="display: none; mso-hide: all; width: 0px; height: 0px; max-width: 0px; max-height: 0px; font-size: 0px; line-height: 0px;">
    {{ $copy1line }}
</div>

<table align="left" cellpadding="0" cellspacing="0" width="100%" height="100%">
    <tr>
        <td align="left" valign="top" bgcolor="#f4f1ef" width="100%">
            <br>
            <table style="margin: 0 auto;" cellpadding="0" cellspacing="0" width="700" class="w320">
                <tr>
                    <td align="left" valign="top">
                        <table style="margin: 0 auto;" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td style=" text-align:center;">
                                    <center>
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="">
                                            <tbody class="">
                                            <tr class="">
                                                <td align="center" valign="middle" style="font-size: 0px;" class="">
                                                    <center>
                                                        <picture style="text-align: center">
                                                            <img src="https://partner.gruene-seele.bio/images/gruene-seele-logo.jpg" alt="gruene-seele.bio" style="border:none" width="230">
                                                        </picture>
                                                    </center>

                                                </td>
                                            </tr>
                                            <tr>
                                                <td><br></td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </center>
                                </td>
                            </tr>
                        </table>

                        <table cellpadding="10" style="padding: 10px;" cellspacing="0" border="0" width="100%" bgcolor="#f4f1ef">
                            @if($mode === 'test' || $mode === 'dev')
                                <tr>
                                    <td class="headline">
                                        <b>##### TEST MODE ##### TEST MODE ##### TEST MODE #####</b>
                                    </td>
                                </tr>
                            @endif
                            <tr>
                                <td class="headline">
                                    <b>{{ $salutation }} </b>
                                </td>
                            </tr>
                            <tr>
                                <td  style="color:#37302d;line-height:1.6em;">
                                    {!! nl2br($copy1line) !!}
                                </td>
                            </tr>

                            @include('emails._checkout_product_list')

                            @if($shopping_order->shopping_user->is_from !== 'extern')

                                @if($send_link)
                                    <tr>
                                        <td>
                                            <center>
                                                <table role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
                                                    <tbody>
                                                    <tr>
                                                        <td style="word-wrap:break-word;background:transparent;font-size:0px;padding:10px 25px;padding-top:15px;padding-bottom:15px;padding-right:40px;padding-left:40px;" align="center" valign="top" background="data:image/gif;base64,">
                                                            <table role="presentation" cellpadding="0" cellspacing="0" align="center" border="0">
                                                                <tbody>
                                                                <tr>
                                                                    <td style="border:none;border-radius:20px;color:#ffffff;cursor:auto;padding:15px 25px;"  align="center" valign="middle" bgcolor="#b5c49b">
                                                                        <p style="text-decoration:none;background:#b5c49b;color:#ffffff;font-family:Arial, sans-serif;font-size:13px;font-weight:normal;line-height:120%;text-transform:none;margin:0px;text-align: center">
                                                                            <a href="{{ $url }}" style="color:#ffffff;font-size:14px;font-weight:bold;text-align:center;text-decoration:none;-webkit-text-size-adjust:none;">{{ $button }}</a>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="color:#37302d;text-align: center">
                                                                        <span style="color: #cabda9; font-weight: normal; font-size: 13px; text-decoration: underline; word-wrap: break-word;white-space: pre-line;">{{ $url }}</span>
                                                                    </td>
                                                                </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </center>
                                        </td>
                                    <tr>
                                    <tr>
                                        <td>
                                            <hr>
                                        </td>
                                    </tr>
                                @endif
                                <tr>
                                    <td class="sub_headline" style="line-height:1.6em;">
                                        <b>{{__('email.checkout_mail_pay_info')}}</b>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table style="padding: 20px; border:1px solid #eee; background-color: #fff;line-height:1.6em;" cellpadding="2" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="line-height:1.6em;">
                                                    <b>{{__('email.checkout_mail_pay_success')}} </b><br>
                                                    {{__('email.checkout_mail_pay_with')}} {{$shopping_payment->getPaymentType()}}<br>
                                                    {{__('email.checkout_mail_pay_ref')}} {{$shopping_payment->reference}}<br>
                                                    {{__('email.checkout_mail_your_mail')}} {{ $shopping_order->shopping_user->billing_email }}<br>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <hr>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="sub_headline">
                                        <b>{{__('email.checkout_mail_invoice_addess')}}</b>
                                    </td>
                                <tr>
                                    <td style="color:#37302d; ">

                                        <table style="padding: 20px; border:1px solid #eee; background-color: #fff;line-height:1.6em;" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="color:#37302d;line-height:1.6em;">
                                                    @if($shopping_order->shopping_user->billing_company)
                                                        {{ $shopping_order->shopping_user->billing_company }}<br>
                                                    @endif

                                                    {{ $shopping_order->shopping_user->billing_firstname }}
                                                    {{ $shopping_order->shopping_user->billing_lastname }}  <br>
                                                    <br>

                                                    {{ $shopping_order->shopping_user->billing_address }} <br>
                                                    @if($shopping_order->shopping_user->billing_address_2)
                                                        {{ $shopping_order->shopping_user->billing_address_2 }}<br>
                                                    @endif

                                                    {{ $shopping_order->shopping_user->billing_zipcode }}
                                                    {{ $shopping_order->shopping_user->billing_city }}  <br>
                                                    {{ $shopping_order->shopping_user->billing_country->getLocated() }}  <br>

                                                    @if($shopping_order->shopping_user->billing_phone)
                                                        <br><br>  {{ $shopping_order->shopping_user->billing_phone }}<br>
                                                    @endif
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="sub_headline" style="line-height:1.6em;">
                                        @if($shopping_order->shopping_user->is_from === 'user_order')
                                            @if($shopping_order->shopping_user->is_for === 'me')
                                                <b>{{__('email.checkout_mail_deliver_addess')}}</b>
                                            @else
                                                <b>{{__('email.checkout_mail_deliver_customer')}}</b>
                                            @endif
                                        @else
                                            <b>{{__('email.checkout_mail_deliver_addess')}}</b>
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <td style="color:#37302d;">
                                        <table style="padding: 20px; border:1px solid #eee; background-color: #fff;line-height:1.6em;" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="color:#37302d;line-height:1.6em;">
                                                    @if($shopping_order->shopping_user->same_as_billing)
                                                        {{__('email.checkout_mail_same_address')}}
                                                    @else

                                                        @if($shopping_order->shopping_user->shipping_company)
                                                            {{ $shopping_order->shopping_user->shipping_company }}<br>
                                                        @endif

                                                        {{ $shopping_order->shopping_user->shipping_firstname }}
                                                        {{ $shopping_order->shopping_user->shipping_lastname }}  <br>
                                                        <br>

                                                        {{ $shopping_order->shopping_user->shipping_address }} <br>
                                                        @if($shopping_order->shopping_user->shipping_address_2)
                                                            {{ $shopping_order->shopping_user->shipping_address_2 }}<br>
                                                        @endif

                                                        {{ $shopping_order->shopping_user->shipping_zipcode }}
                                                        {{ $shopping_order->shopping_user->shipping_city }}  <br>

                                                        {{ $shopping_order->shopping_user->shipping_country->getLocated() }}  <br>

                                                        @if($shopping_order->shopping_user->shipping_phone)
                                                            <br><br> {{ $shopping_order->shopping_user->shipping_phone }}<br>
                                                        @endif
                                                    @endif
                                                </td>
                                            </tr>

                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <hr>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="color:#37302d;font-size: 14px;line-height:1.6em;">
                                        <table style="margin: 0 auto;" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="color:#37302d;line-height:1.6em;">
                                                    {{ $copy3line }}
                                                    <hr><br>
                                                    {{ $greetings }} <br><b>{{ $sender }}</b>
                                                    <br>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><br></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            @else
                                @if($shopping_order->wp_invoice_path)
                                    <tr>
                                        <td class="sub_headline">
                                            <b>Rechnung: <a href="{{$shopping_order->wp_invoice_path}}">{{$shopping_order->wp_invoice_path}}</a></b><br>
                                            <hr>
                                        </td>
                                    <tr>
                                @endif
                                @if($shopping_order->wp_notice['wp_advertising'])
                                    <tr>
                                        <td class="sub_headline">
                                            <b>Werbemittel: {!! $shopping_order->wp_notice['wp_advertising'] !!}<br></b>
                                            <hr>
                                        </td>
                                    <tr>
                                @endif
                                @if($shopping_order->wp_notice['wp_incentives'])
                                    <tr>
                                        <td class="sub_headline">
                                            <b>Incentives: {!! $shopping_order->wp_notice['wp_incentives'] !!}<br></b>
                                            <hr>
                                        </td>
                                    <tr>
                                @endif
                                <tr>
                                    <td class="sub_headline">
                                        <b>{{__('email.checkout_mail_deliver_customer')}}</b>
                                    </td>
                                <tr>

                                <tr>
                                    <td style="color:#37302d; ">
                                        <table style="padding: 20px; border:1px solid #eee; background-color: #fff;line-height:1.6em;" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="color:#37302d;line-height:1.6em;">
                                                    @if($shopping_order->shopping_user->same_as_billing)
                                                        @if($shopping_order->shopping_user->billing_company)
                                                            {{ $shopping_order->shopping_user->billing_company }}<br>
                                                        @endif

                                                        {{ $shopping_order->shopping_user->billing_firstname }}
                                                        {{ $shopping_order->shopping_user->billing_lastname }}  <br>
                                                        <br>

                                                        {{ $shopping_order->shopping_user->billing_address }} <br>
                                                        @if($shopping_order->shopping_user->billing_address_2)
                                                            {{ $shopping_order->shopping_user->billing_address_2 }}<br>
                                                        @endif

                                                        {{ $shopping_order->shopping_user->billing_zipcode }}
                                                        {{ $shopping_order->shopping_user->billing_city }}  <br>
                                                        {{ $shopping_order->shopping_user->billing_country->getLocated() }}  <br>

                                                        @if($shopping_order->shopping_user->billing_phone)
                                                            <br><br>  {{ $shopping_order->shopping_user->billing_phone }}<br>
                                                        @endif
                                                    @else
                                                        @if($shopping_order->shopping_user->shipping_company)
                                                            {{ $shopping_order->shopping_user->shipping_company }}<br>
                                                        @endif

                                                        {{ $shopping_order->shopping_user->shipping_firstname }}
                                                        {{ $shopping_order->shopping_user->shipping_lastname }}  <br>
                                                        <br>

                                                        {{ $shopping_order->shopping_user->shipping_address }} <br>
                                                        @if($shopping_order->shopping_user->shipping_address_2)
                                                            {{ $shopping_order->shopping_user->shipping_address_2 }}<br>
                                                        @endif

                                                        {{ $shopping_order->shopping_user->shipping_zipcode }}
                                                        {{ $shopping_order->shopping_user->shipping_city }}  <br>

                                                        {{ $shopping_order->shopping_user->shipping_country->getLocated() }}  <br>

                                                        @if($shopping_order->shopping_user->shipping_phone)
                                                            <br><br> {{ $shopping_order->shopping_user->shipping_phone }}<br>
                                                        @endif
                                                    @endif
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <hr>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="sub_headline">
                                        <b>{{__('email.checkout_copy3line_extern')}}</b>
                                    </td>
                                <tr>
                                <tr>
                                    <td style="color:#37302d;font-size: 14px;line-height:1.6em;">
                                        <table style="margin: 0 auto;" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="color:#37302d;line-height:1.6em;">

                                                    @if($shopping_order->member)
                                                        Vertriebspartner:  {{ \App\Services\HTMLHelper::getSalutationLang($shopping_order->member->account->m_salutation) }} {{ $shopping_order->member->account->m_first_name }} {{ $shopping_order->member->account->m_last_name }}
                                                        <br>
                                                        Account ID: {{ $shopping_order->member->account->m_account }} <br>
                                                        @if($shopping_order->member->user_level)
                                                            Karriere-Level:    {{ $shopping_order->member->user_level->name }} <br>
                                                        @endif
                                                    @endif

                                                </td>
                                            </tr>
                                            <tr>
                                                <td><br></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>

                            @endif

                        </table>
                        <center>
                            <table style="margin: 0 auto;" cellpadding="0" cellspacing="0" class="force-full-width"
                                   bgcolor="#f4f1ef">
                                <tr>
                                    <td style="color:#7B7B7E; font-size:14px;padding:20px;line-height:1.6em" align="center">
                                        <p>
                                            {{__('email.footer_copy1')}}
                                        </p>
                                        <br>
                                        <a href="https://www.gruene-seele.bio" style="color: #7B7B7E; text-decoration: underline;">www.gruene-seele.bio</a>
                                        <br>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="color:#bbbbbb; font-size:12px;padding:20px;line-height:1.6em" align="center">
                                        <p>{{__('email.footer_copy2')}}</p>
                                        <a href="https://www.gruene-seele.bio/datenschutzerklaerung/">Datenschutzerklärung</a> <br>
                                        <p>{{__('email.footer_copy3')}}</p>
                                        <br>
                                        <br>
                                    </td>
                                </tr>
                            </table>
                        </center>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>
</html>

