<!DOCTYPE html>
<html lang="de">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>
        Quittung - {{ $contract->car->name }} - {{ $contract->contact->full_title }}
    </title>
    <style type="text/css">
        * {
            font-family: Verdana, Arial, sans-serif;
        }
        body {
            margin: 0;
        }
        table{
            font-size: x-small;
        }
        table tr td {
            padding: 1px 0;
            font-size: 12px;
        }
        .footnote {
            padding: 5px 0;
            margin: 25px 0 5px 0;
            font-size: 9px;
            border-top: 1px solid black;
            border-bottom: 1px solid black;
        }
        tfoot tr td{
            font-weight: bold;
            font-size: x-small;
        }
        .gray {
            background-color: lightgray
        }
</style>
</head>
<body>
    <table width="100%">
        <tr>
            <td align="left">
                <pre>
<b>Your SwissCar GmbH</b>
Bernstrasse 27
8952 Schlieren

Tel: 079 680 34 44
E-Mail: info@yourswisscar.com

MwSt-Nr: CHE-226.272.050
                </pre>
            </td>
            <td valign="top" alt="logo" width="100%" align="right"><x-logo /></td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td><h1>
                Quittung
            </h1></td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td width="15%"><b>Verkäufer</b></td>
            <td width="35%">Your SwissCar GmbH</td>
            <td width="15%"><b>Käufer</b></td>
            <td width="35%">{{ $contract->contact->full_title }}</td>
        </tr>
        <tr>
            <td>Strasse</td>
            <td>Bernstrasse 27</td>
            <td>Strasse</td>
            <td>{{ $contract->contact->address }}</td>
        </tr>
        <tr>
            <td>PLZ / Ort</td>
            <td>8952 Schlieren</td>
            <td>PLZ / Ort</td>
            <td>{{ $contract->contact->full_city }}</td>
        </tr>
        <tr>
            <td>Telefon</td>
            <td>079 680 34 44</td>
            <td>Telefon</td>
            <td>{{ $contract->contact->phone }}</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>E-Mail</td>
            <td>{{ $contract->contact->email }}</td>
        </tr>
        <tr><td>&nbsp;</td></tr>
    </table>
    <table width="100%">
        <tr><td>Fahrzeug:</td></tr>
        <tr>
            <td><b>{{ $contract->car->name_with_year }}</b>, Stammnr.: {{ $contract->car->stammnummer }}</td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
            <td>Hiermit wird die folgende Einzahlung für das oben genannte Fahrzeug bestätigt:</td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td width="20%">Datum</td>
            <td>{{ $payment->date }}</td>
        </tr>
        <tr>
            <td>Zahlungsart</td>
            <td>{{ $payment->type }}</td>
        </tr>
        <tr>
            <td>Betrag</td>
            <td><h4>{{ $payment->amount->format() }}</h4></td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr><td>&nbsp;</td></tr>
    </p>
    <table width="100%">
        <tr>
            <td>Ort, Datum</td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
            <td>Schlieren, {{ $payment->date }}</td>
        </tr>
    </table>
</body>
</html>