<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$firma_bilgileri=Genel::get_company_info();
//print_r($detay);
?>

        
        
           
                <div class="page-title clearfix hidden-print">
                    
                    <button class="btn btn-sm btn-info pull-right" style="margin-right:20px;" onclick="window.print();"><?=Genel::dil_ceviri("voucher_page_print")?></button>
                    
                    

                    
                    
                    <span class="h3" style="color: #666"><?=Genel::dil_ceviri("voucher_page_reservation_confirmation")?></span>
                </div>
                
                <div class="reservation pad15">
                    <div class="row visible-print">
                        <div class="col-md-12 text-center"><h2 style="padding:0"><?=Genel::dil_ceviri("voucher_page_reservation_confirmation")?></h2></div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <p><img style="max-width:250px" src="<?=genel::sistem_ayarlari(23)?><?=$grup_detay->logo?>"></p>
                            <h4><?=$detay["mice"]['group_name']?></h4>
                            <p><a href="<?=config_item("site_adresi")?>"></a></p>
                            <p><br>
                                <?=Genel::dil_ceviri("voucher_page_call_center")?>: <?=$firma_bilgileri->phone?><br>
                            </p><p>
                            <?=Genel::dil_ceviri("voucher_page_phone")?>: <?=$firma_bilgileri->phone2?><br>
                            <?=Genel::dil_ceviri("voucher_page_email")?>: <a href="mailto:<?=$firma_bilgileri->email?>"><?=$firma_bilgileri->email?></a>
                            </p>
                        </div>
                        <div class="col-xs-6 text-right">
                            
                            <h5><?=Genel::dil_ceviri("voucher_page_booking_date")?>: <?=date("d-m-Y",strtotime($detay["general"]['sales_date']))?></h5>
                            <p class="h4"><?=Genel::dil_ceviri("voucher_page_booking_reference")?> <?=$detay["general"]['voucher']?></p>
                        </div>
                    </div>
                    <div class="well customerInfo">
                        <div class="row">
                            <div class="col-md-6 col-xs-12">
                                <strong><?=Genel::dil_ceviri("voucher_page_personal_info")?>:</strong>
                                <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_name_surname")?> : </div><div class="col-xs-8"><strong><?=$detay["general"]["name"]?> <?=$detay["general"]["surname"]?></strong></div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_email")?> :</div><div class="col-xs-8"> <strong><?=$detay["general"]["email"]?></strong></div>
                                </div>
                                    <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_phone")?> : </div><div class="col-xs-8"> <strong><?=$detay["general"]["phone"]?></strong></div>
                                    
                                    </div>
                                    
                                  
                                    
                                        
                                      
                                        
                             
                            </div>
                            <div class="col-md-6 col-xs-12">
                                <strong><?=Genel::dil_ceviri("voucher_page_booking_info")?>:</strong>
                                <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_booking_date")?>: </div>
                                    <div class="col-xs-8">
                                        <strong><?=date("d-m-Y",strtotime($detay["general"]['sales_date']))?></strong>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_booking_reference")?>: </div>
                                    <div class="col-xs-8">
                                        <strong><?=$detay["general"]['voucher']?></strong>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_payment_type")?>: </div>
                                    <div class="col-xs-8">
                                        <strong>
                                        
                                        
<?php 
foreach ($detay["payments"] as $payments) {?>
<span class="methodname"><?=$payments["payment_type_str"]?></span>: <?=$payments["amount"]?> <i class="fa fa-try"></i><br>
<?php }?>



                                            
                                            
                                        
                                        </strong>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-4"><?=Genel::dil_ceviri("voucher_page_total_paid")?>: </div>
                                    <div class="col-xs-8">
                                        <strong><?=$detay["general"]["payment"];?> <i class="fa fa-try"></i></strong>
                                    </div>
                                </div>
                                
                            </div>
                        </div>
                    </div>
                    

                    
                    
                    
                    
                    
                    
                    
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                                <tr>
                                   
                                    <th><?=Genel::dil_ceviri("voucher_page_description")?></th>
                                    <th width="90" class="text-right"><?=Genel::dil_ceviri("voucher_page_cost")?></th>
                                </tr>
                            </thead>
                            <tbody>
<?php 
$urun_sira=0;
$konaklama_tutari=0;
$konaklama_kur="TRY";
$transfer_tutari=0;
$transfer_kur="TRY";

    ?>                                
                                
                                    <tr>

                                        <td>
<?=$detay["mice"]["group_name"]?> <br>
 <?=$detay['general']["adult"]?> <?=Genel::dil_ceviri("voucher_page_adult")?> <?php if($detay['general']["child"]>0){?>, <?=$detay['general']["child"]?> <?=Genel::dil_ceviri("voucher_page_child")?><?php }?><br>
<?=Genel::dil_ceviri("voucher_page_check_in")?>: <strong><?=date("d.m.Y",strtotime($detay['general']["checkin_date"]))?></strong> <?=Genel::dil_ceviri("voucher_page_check_out")?>: <strong><?=date("d.m.Y",strtotime($detay['general']["checkout_date"]))?></strong><br>
<?=Genel::dil_ceviri("voucher_page_guest_info")?>:
<?php 
$kisi_sira=0;
foreach ( $detay["mice"]['paxes'] as $kisiler) {
$kisi_sira=$kisi_sira+1;


    ?>    
<?php if($kisi_sira>1){?>,<?php }?>
<?=Genel::dil_ceviri("voucher_page_title_".$kisiler["gender"])?> <?=$kisiler["name"]?> 
<?php }?>                                                     

                                                
                                                
                                                
                                            
                                        </td>
                                        <td class="text-right" nowrap="" style="vertical-align: middle !important;">
                                            
                                            <div class="price"><?=$detay["mice"]['sales']?> <i class="fa fa-<?=strtolower($detay["mice"]['sales_currency'])?>"></i></div>
                                            
                                        </td>
                                    </tr>

                                



                             
                                
                                
                            </tbody>
                            <tfood>
<?php if($konaklama_tutari>0){?>                                
                                <tr class="text-right">
                                    <td colspan="2">
                                        <b><?=Genel::dil_ceviri("voucher_page_room_cost")?></b>
                                    </td>
                                    <td nowrap="">
                                       <?=number_format($konaklama_tutari,2,",",".")?> <i class="fa fa-<?=strtolower($konaklama_kur)?>"></i>
                                    </td>
                                </tr>
<?php }?>  

                                <tr class="text-right">
                                    <td colspan="1">
                                        <b><?=Genel::dil_ceviri("voucher_page_total_cost")?> (TRY)</b>
                                    </td>
                                    <td class="f16" nowrap="">
                                        <b><?=$detay["general"]['total_sales']?> <i class="fa fa-try"></i></b>
                                    </td>
                                </tr>
                            </tfood>
                        </table>
                    </div>
                </div>


        
