<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Mail Template</title>
    <style type="text/css">
        img {
            max-width: 100%;
        }
        body {
            -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em;
        }
        body {
            background-color: #f6f6f6;
            color: #7d7b7b;
        }
        @media  only screen and (max-width: 640px) {
            body {
                padding: 0 !important;
            }
            h1 {
                font-weight: 800 !important; margin: 20px 0 5px !important;
            }
            h2 {
                font-weight: 800 !important; margin: 20px 0 5px !important;
            }
            h3 {
                font-weight: 800 !important; margin: 20px 0 5px !important;
            }
            h4 {
                font-weight: 800 !important; margin: 20px 0 5px !important;
            }
            h1 {
                font-size: 22px !important;
            }
            h2 {
                font-size: 18px !important;
            }
            h3 {
                font-size: 16px !important;
            }
            .container {
                padding: 0 !important; width: 100% !important;
            }
            .content {
                padding: 0 !important;
            }
            .content-wrap {
                padding: 10px !important;
            }
            .invoice {
                width: 100% !important;
            }
        }
    </style>
</head>
<body style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
<table class="body-wrap" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
        <td style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
        <td class="container" width="800" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 800px !important; clear: both !important; margin: 0 auto;" valign="top">
            <div class="content" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 800px; display: block; margin: 0 auto; padding: 20px;">
                <table class="main" width="100%" cellpadding="0" cellspacing="0" itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff">
                    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                        <td class="content-wrap" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; border-bottom: 1px solid #f1efef; font-size: 14px; text-align: center; vertical-align: top; margin: 0; padding: 20px;" valign="top">
                            <a href="https://www.extranetwork.com" target="_blank">
                                <img src="{{config('app.client_server')}}/assets/img/logo/logo.png" height="30" />
                            </a>
                        </td>
                    </tr>
                    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                        <td class="content-wrap" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" valign="top">
                            <meta itemprop="name" content="Confirm Email" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
                            <table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                    <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
                                        <table width="100%">
                                            <tr>
                                                <td style="font-weight: bold; padding-top: 5px;">
                                                    <h2 style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 24px; color: #d71f26; line-height: 1.2em; font-weight: 400; text-align: left; margin: 10px 0 0; letter-spacing: -1px;">{{$params['propertyName']}}</h2>
                                                    <h3 style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 18px; color: #7d7b7b; line-height: 1.2em; font-weight: 550; text-align: left; margin: 2px 0 0; letter-spacing: -1px;">{{$params['date']}}</h3>
                                                </td>
                                                <td style="font-weight: bold;padding-top: 5px; text-align: right;">
                                                    <img src="{{$params['logo']}}" height="60" />
                                                </td>

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

                                @if(isset($params['transaction']) && !empty($params['transaction']))
                                    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                    <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 10px 0 20px;" valign="top">
                                        <table width="100%">

                                            <tr>
                                                <td colspan="2" style="font-weight: bold;padding-top: 10px;color: #d71f26; font-size: 16px;">İşlem Raporu</td>
                                            </tr>
                                            <tr>
                                                <td style="font-weight: bold;padding-top: 10px;">İşlem</td>
                                                <td style="font-weight: bold;padding-top: 10px; text-align: right;">Adet</td>
                                            </tr>
                                            <tr>
                                                <td colspan="2"><hr style="border: 1px solid #f1efef;"></td>
                                            </tr>
                                            <!-- <tr style="background-color: #efefef;"> -->
                                            <tr>
                                                <td>Oda Bulundu</td>
                                                <td style="text-align: right;">{{$params['transaction']['roomFound']}}</td>
                                            </tr>
                                            <tr>
                                                <td>Oda Bulunamadı</td>
                                                <td style="text-align: right;">{{$params['transaction']['roomNotFound']}}</td>
                                            </tr>
                                            <tr>
                                                <td>Ön Rezervasyon</td>
                                                <td style="text-align: right;">{{$params['transaction']['preBooking']}}</td>
                                            </tr>
                                            <tr>
                                                <td>Rezervasyon</td>
                                                <td style="text-align: right;">{{$params['transaction']['booking']}}</td>
                                            </tr>
                                            <tr>
                                                <td style="font-weight: bold;">Toplam Arama Sayısı</td>
                                                <td style="font-weight: bold;text-align: right;">{{$params['transaction']['search']}}</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                @endif

                                @if(isset($params['occupancy']) && !empty($params['occupancy']))
                                    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                        <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 10px 0 20px;" valign="top">
                                            <table width="100%">

                                                <tr>
                                                    <td colspan="2" style="font-weight: bold;padding-top: 10px;color: #d71f26; font-size: 16px;">Misafir Sorgu Raporu</td>
                                                </tr>
                                                <tr>
                                                    <td style="font-weight: bold;padding-top: 10px;">Sorgu Tipi</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Adet</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2"><hr style="border: 1px solid #f1efef;"></td>
                                                </tr>
                                                @foreach($params['occupancy'] as $occupancyCode => $occupancy)
                                                    <tr>
                                                        <td>{{$occupancy['text']}}</td>
                                                        <td style="text-align: right;">{{$occupancy['count']}}</td>
                                                    </tr>
                                                @endforeach
                                            </table>
                                        </td>
                                    </tr>
                                @endif

                                @if(isset($params['dailyIntensity']) && !empty($params['dailyIntensity']))
                                    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                        <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 10px 0 20px;" valign="top">
                                            <table width="100%" cellpadding="2" cellspacing="0">

                                                <tr>
                                                    <td colspan="5" style="font-weight: bold;padding-top: 10px;color: #d71f26; font-size: 16px;">Tarih Arama Raporu</td>
                                                </tr>
                                                <tr>
                                                    <td style="font-weight: bold;padding-top: 10px;">Tarih</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Sorgu Sayısı</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Oda Bulundu</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Oda Bulunamadı</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Rezervasyon</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5"><hr style="border: 1px solid #f1efef;"></td>
                                                </tr>
                                                @foreach($params['dailyIntensity'] as $date => $dateData)
                                                    <!-- @if($dateData['roomFound'] > 0) style="background-color: #e9e9e9;" @endif -->
                                                    <tr>
                                                        <td style="min-width: 150px;border-bottom: 1px solid #CCC !important;">{{$dateData['text']}}</td>
                                                        <td style="text-align: right;border-bottom: 1px solid #CCC !important;">{{$dateData['search']}}</td>
                                                        <td style="text-align: right;border-bottom: 1px solid #CCC !important;">{{$dateData['roomFound']}}</td>
                                                        <td style="text-align: right;border-bottom: 1px solid #CCC !important;">{{$dateData['roomNotFound']}}</td>
                                                        <td style="text-align: right;border-bottom: 1px solid #CCC !important;">{{$dateData['booking']}}</td>
                                                    </tr>
                                                @endforeach
                                            </table>
                                        </td>
                                    </tr>
                                @endif

                                @if(isset($params['country']) && !empty($params['country']))
                                <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                    <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 10px 0 20px;" valign="top">
                                        <table width="100%">

                                            <tr>
                                                <td colspan="5" style="font-weight: bold;padding-top: 10px;color: #d71f26; font-size: 16px;">Kullanıcı Ülke Raporu</td>
                                            </tr>
                                            <tr>
                                                <td style="font-weight: bold;padding-top: 10px;">Ülke</td>
                                                <td style="font-weight: bold;padding-top: 10px; text-align: right;">Sorgu Sayısı</td>
                                                <td style="font-weight: bold;padding-top: 10px; text-align: right;">Oda Bulundu</td>
                                                <td style="font-weight: bold;padding-top: 10px; text-align: right;">Oda Bulunamadı</td>
                                                <td style="font-weight: bold;padding-top: 10px; text-align: right;">Rezervasyon</td>
                                            </tr>
                                            <tr>
                                                <td colspan="5"><hr style="border: 1px solid #f1efef;"></td>
                                            </tr>
                                            @foreach($params['country'] as $countryCode => $country)
                                            <tr>
                                                <td style="min-width: 150px;">{{$country['text']}}</td>
                                                <td style="text-align: right;">{{$country['search']}}</td>
                                                <td style="text-align: right;">{{$country['roomFound']}}</td>
                                                <td style="text-align: right;">{{$country['roomNotFound']}}</td>
                                                <td style="text-align: right;">{{$country['booking']}}</td>
                                            </tr>
                                            @endforeach
                                        </table>
                                    </td>
                                </tr>
                                @endif


                                @if(isset($params['language']) && !empty($params['language']))
                                    <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                        <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 10px 0 20px;" valign="top">
                                            <table width="100%">

                                                <tr>
                                                    <td colspan="5" style="font-weight: bold;padding-top: 10px;color: #d71f26; font-size: 16px;">Kullanıcı Dil Raporu</td>
                                                </tr>
                                                <tr>
                                                    <td style="font-weight: bold;padding-top: 10px;">Dil</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Sorgu Sayısı</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Oda Bulundu</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Oda Bulunamadı</td>
                                                    <td style="font-weight: bold;padding-top: 10px; text-align: right;">Rezervasyon</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5"><hr style="border: 1px solid #f1efef;"></td>
                                                </tr>
                                                @foreach($params['language'] as $languageCode => $language)
                                                    <tr>
                                                        <td style="min-width: 150px;">{{$language['text']}}</td>
                                                        <td style="text-align: right;">{{$language['search']}}</td>
                                                        <td style="text-align: right;">{{$language['roomFound']}}</td>
                                                        <td style="text-align: right;">{{$language['roomNotFound']}}</td>
                                                        <td style="text-align: right;">{{$language['booking']}}</td>
                                                    </tr>
                                                @endforeach
                                            </table>
                                        </td>
                                    </tr>
                                @endif


                                <tr style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                    <td class="content-block" style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
                                        <hr style="border: 1px solid #f1efef;margin-top: 50px;">
                                        <table width="100%">
                                            <tr>
                                                <td style="font-weight: bold;padding-top: 10px;color: #d71f26; font-size: 16px;">
                                                    <img src="{{config('app.client_server')}}/assets/img/logo/mini-logo.png" height="40" />
                                                </td>
                                                <td style="padding-top: 10px; text-align: right;color: #CCC;">
                                                    {{$params['propertyName']}}<br>
                                                    {{date('Y-m-d H:i:s')}}
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
        <td style="font-family: 'Calibri', Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
    </tr>
</table>
</body>
</html>
