<html>
<head>
    <title>Extranetwork Fiyat Teklifi</title>
    <meta charset="UTF-8">


    <style>
        body { font-family: 'Gilroy'; font-size: 12px; }
        table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        th, td { border: 1px solid #ddd; padding: 6px; }
        .price {
            text-align: center; font-weight: bold; font-size: 16px;
        }
        .priceBeforeDiscount {
            text-align: center; font-weight: bold; text-decoration: line-through;
        }
        .priceWithPromotion {
            text-align: center; font-weight: bold; color: #d51b2c; font-size: 16px;
        }
        .footer {
            position: fixed;
            bottom: -60px;
            left: 0;
            right: 0;
            height: 50px;
            font-size: 12px;
            color: #666;
        }
    </style>

</head>
<body>

<div class="mainContainer">


    <table>
        <tr>
            <td style="border: none; border-bottom: 1px solid #DDD;">
                <img src="https://api.extranetwork.com/img/logo_small.png" width="200">
            </td>
            <td style="border: none; text-align: right; border-bottom: 1px solid #DDD;">
                <h3>Extranetwork Fiyat Teklifi</h3>
            </td>
        </tr>
    </table>


    <table>
        <thead>
            <tr>
                <th style="text-align: center;"></th>
                <th style="text-align: center;">Ad Soyad</th>
                <th style="text-align: center;">E-Posta</th>
                <th style="text-align: center;">Telefon</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Teklifi Gönderen</td>
                <td style="text-align: center; font-weight: bold;">{{$pageContent['accountManagerName']}}</td>
                <td style="text-align: center; font-weight: normal;">{{$pageContent['accountManagerEmail']}}</td>
                <td style="text-align: center; font-weight: normal;">{{$pageContent['accountManagerPhone']}}</td>
            </tr>
            <tr>
                <td colspan="4" style="border-left: 0;"><br></td>
            </tr>
            <tr>
                <td>Otel Adı</td>
                <td style="text-align: center; font-weight: bold;" colspan="3">{{$pageContent['name']}}</td>
            </tr>
            <tr>
                <td>Otel Yetkilisi</td>
                <td style="text-align: center; font-weight: bold;">{{$pageContent['executiveName']}}</td>
                <td style="text-align: center; font-weight: normal;">{{$pageContent['executiveEmail']}}</td>
                <td style="text-align: center; font-weight: normal;">{{$pageContent['executivePhone']}}</td>
            </tr>
        </tbody>
    </table>

    <table>
        <tr>
            <td style="border: none; border-bottom: 1px solid #DDD; padding-left: 0;">
                <h3>Paket Bilgisi</h3>
            </td>
        </tr>
    </table>
    <table>
        <tbody>
        <tr>
            <td style="font-weight: bold; text-align: center;" colspan="2">{{$pageContent['packageName']}}</td>
        </tr>
        <tr>
            <td style="font-weight: bold;">İçerik Yöneticisi</td>
            <td rowspan="6" style="font-weight: bold; text-align: center;">

                <span style="font-size: 20px;">{{$pageContent['pricing']['commission']}}%</span>
                <br>
                @if($pageContent['pricing']['minFee'] == $pageContent['pricing']['minFeeBeforeDiscount'])
                    {{$pageContent['pricing']['minFee']}} EUR / Oda
                @else
                    <span style="font-size: 16px; text-decoration: line-through; color: #d51b2c;">{{$pageContent['pricing']['minFeeBeforeDiscount']}} EUR / Oda yerine</span><br>
                    <span style="font-size: 16px; color: #008000;">{{$pageContent['pricing']['minFee']}} EUR / Oda</span>
                @endif

            </td>
        </tr>
        <tr>
            <td style="font-weight: bold;">Kanal Entegratörü</td>
        </tr>
        <tr>
            <td style="font-weight: bold;">Rezervasyon Motoru</td>
        </tr>
        <!--<tr>
            <td style="font-weight: bold;">Rekabet Analizi</td>
        </tr>-->
        <tr>
            <td style="font-weight: bold;">Web Sayfası</td>
        </tr>
        <tr>
            <td style="font-weight: bold;">Ödeme Altyapısı</td>
        </tr>
        <tr>
            <td style="font-weight: bold;">Teklif Modülü</td>
        </tr>
        @if($pageContent['package'] == 'LRG')
            <tr>
                <td colspan="2">Not: Belirtilen fiyatlara metasearch reklamları dahildir.</td>
            </tr>
        @endif
        </tbody>

    </table>



    <table>
        <tr>
            <td style="border: none; border-bottom: 1px solid #DDD; padding-left: 0;">
                <h3>Paket Detayı</h3>
            </td>
            <td style="border: none; text-align: right; border-bottom: 1px solid #DDD;">
                <h3>Oda Sayısı: {{$pageContent['numberOfRooms']}}</h3>
            </td>
        </tr>
    </table>

    @if($pageContent['promotionCode'])
    <table>
        <tbody>
        <tr>
            <td style="text-align: left; font-weight: bold; font-size: 14px;">Seçili Kampanya</td>
        </tr>
        <tr>
            <td>
                Fuar'a Özel 1. Yıl indirimi uygulanmıştır. <br>
                Bu Kampanyadaki indirimli ücretler 31.12.2025 tarihine kadar alınan paketlerde geçerli olup, geçerlilik süresi 1 yıldır.
            </td>
        </tr>
        </tbody>
    </table>
    @endif

    <table>
        <tbody>
        <tr>
            <td style="font-weight: bold;">Aylık Ödeme</td>
            <td style="text-align: center;">{{$pageContent['pricing']['monthly']['minFee']}} EUR</td>
            <td style="text-align: center;">Her ay {{$pageContent['pricing']['monthly']['minReservationTotal']}} EUR'luk rezervasyona, %{{$pageContent['pricing']['commission']}} yerine %0 Komisyon!</td>
        </tr>
        <tr>
            <td style="font-weight: bold;">Yıllık Ödeme (%10 İndirim)</td>
            <td style="text-align: center;">{{$pageContent['pricing']['annually']['minFeeDiscount']}} EUR</td>
            <td style="text-align: center;">Yıl boyunca {{$pageContent['pricing']['annually']['minReservationTotal']}} EUR'luk rezervasyona, %{{$pageContent['pricing']['commission']}} yerine  %0 Komisyon!</td>
        </tr>
        <tr>
            <td colspan="3" style="font-size: 10px; color: #666;">Not: Yüzdelik oran üzerinden alınan hizmet bedeline KDV dahildir. Aylık minimum sabit tutarlar ise KDV hariçtir ve faturalandırma sırasında ayrıca KDV eklenir.</td>
        </tr>
        </tbody>
    </table>



</div>

<div class="footer">
    <div style="width: 500px; float: left; text-align: left;">{{$pageContent['accountManagerName']}} - {{$pageContent['accountManagerEmail']}}</div>
    <div style="width: 300px; float: right; text-align: right;">Teklif Tarihi: {{$pageContent['offerTimeFormatted']}}</div>
</div>

</body>
</html>
