<!DOCTYPE html>
<html v-bind:lang="$i18n.locale">
    <head>
        <meta name="viewport" content="width=device-width">
        <meta name="format-detection" content="telephone=no">
        <title>{{ $t('subject') }}</title>
    </head>
    <body>
        <table class="grid">
            <tbody>
                <tr>
                    <td>
                        <!-- Empty block -->
                        <div class="grid-row">
                            <div class="grid-block empty"></div>
                        </div>
                        <!-- Header block -->
                        <div class="grid-row">
                            <div class="grid-block">
                                <email-header v-bind="$props"></email-header>
                            </div>
                        </div>
                        <!-- Block -->
                        <div class="grid-row">
                            <div class="grid-block vn-pa-ml">
                                <h1>{{ $t('title') }}</h1>
                                <p>{{$t('description.dear')}},</p>
                                <p>{{$t('description.instructions')}}</p>
                                <p v-html="$t('description.followGuide')"></p>
                                <p v-html="$t('description.downloadFrom')"></p>
                                <p v-html="$t('description.downloadDriver')"></p>

                                <h1>{{$t('sections.QLabel.title')}}</h1>
                                <p>{{$t('sections.QLabel.description')}}:</p>
                                <ol>
                                    <li v-for="step in $t('sections.QLabel.steps')">
                                        <span v-html="step"></span>
                                    </li>
                                </ol>
                            </div>
                        </div>
                        <!-- Block -->
                        <div class="grid-row">
                            <div class="grid-block vn-pa-ml">
                                <h1>{{$t('sections.help.title')}}</h1>
                                <p>{{$t('sections.help.description')}}</p>
                                <p v-html="$t('sections.help.remoteSupport')"></p>
                            </div>
                        </div>
                        <!-- Block -->
                        <div class="grid-row">
                            <div class="grid-block vn-pa-ml">
                                <div v-if="client.salesPersonName">
                                    {{$t('salesPersonName')}}: <strong>{{client.salesPersonName}}</strong>
                                </div>
                                <div v-if="client.salesPersonPhone">
                                    {{$t('salesPersonPhone')}}: <strong>{{client.salesPersonPhone}}</strong>
                                </div>
                                <div v-if="client.salesPersonEmail">
                                    {{$t('salesPersonEmail')}}: 
                                    <strong><a v-bind:href="`mailto:${client.salesPersonEmail}`" target="_blank">{{client.salesPersonEmail}}</strong>
                                </div>
                            </div>
                        </div>
                        <!-- Block -->
                        <div class="grid-row" v-if="isPreview">
                            <div class="grid-block vn-pa-ml">
                                <attachment v-for="attachment in attachments" 
                                    v-bind:key="attachment.filename"
                                    v-bind:attachment="attachment"
                                    v-bind:args="$props">
                                </attachment>
                            </div>
                        </div>
                        <!-- Footer block -->
                        <div class="grid-row">
                            <div class="grid-block">
                                <email-footer v-bind="$props"></email-footer>
                            </div>
                        </div>
                        <!-- Empty block -->
                        <div class="grid-row">
                            <div class="grid-block empty"></div>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>