<?php
defined('BASEPATH') OR exit('No direct script access allowed');
//$otel_detay=genel::otel_detay($otel_bilgi["otel_id"]);
?>
<input type="hidden" id="tc_kimlik_dogrulama_sonuc" value="1">
<div class="panel panel-success">
<div class="panel-heading" style="background-color: #e31d1a;color: #fff;font-weight: bold;"><?=Genel::dil_ceviri("booking_page_contact_details")?></div>
<div class="panel-body">
<input type="hidden" name="package_token" value="<?=$package_token?>">
    <input type="hidden" name="roomToken" value="<?=$room_token?>">

<div class="row">
                                                        <div class="col-md-6">
                                                            <div class="form-group">
                                                                <label for="iletisim_isim">
İsim<span class="require">*</span></label>
<input name="iletisim_isim" id="iletisim_isim" class="form-control" value="" type="text" required="">
                                                            </div>
                                                        </div>
                                                 <div class="col-md-6">
                                                            <div class="form-group">
                                                                <label for="iletisim_soyisim">
                                                                   Soyisim<span class="require">*</span>
                                                                </label>
<input name="iletisim_soyisim" id="iletisim_soyisim" class="form-control" value="" type="text" required="">
                                                            </div>
                                                        </div>
                                                    </div>


<div class="row">
                                                        <div class="col-md-6">
                                                            <div class="form-group">
                                                                <label for="iletisim_mail">
Tc. Kimlik Numarası<span class="require">*</span></label>
<input name="iletisim_tckimlik" id="iletisim_tc_kimlik" class="form-control" value="" type="text" required="">

                                                            </div>
                                                        </div>
                                                 <div class="col-md-6">
                                                            <div class="form-group">
                                                                <label for="iletisim_d_yili">
                                                                   Doğum Yılı<span class="require">*</span>
                                                                </label>
<input name="iletisim_d_yili" id="iletisim_dogum_yili" class="form-control" value="" type="text" required="">
                                                            </div>
                                                        </div>
                                                    </div>
<div class="row hidden" id="tc_kimlik_uyari_div">
<div class="col-md-12">
<div class="alert alert-danger">
  <strong>Dikkat!</strong> TC Kimlik Numarası doğrulanamadı. Lütfen bilgileri girerek tekrar deneyiniz.
</div>
</div>
</div> 

<div class="row">
                                                        <div class="col-md-6">
                                                            <div class="form-group">
                                                                <label for="iletisim_mail">
                                                                    <?=Genel::dil_ceviri("booking_page_email")?>
                                                                    <span class="require">*</span></label>
<input name="iletisim_mail" id="iletisim_mail" class="form-control" value="" type="email" required="">
                                                            </div>
                                                        </div>
                                                 <div class="col-md-6">
                                                            <div class="form-group">
                                                                <label for="iletisim_telefon">
                                                                   <?=Genel::dil_ceviri("booking_page_phone")?><span class="require">*</span>
                                                                </label>
<input name="iletisim_telefon" id="iletisim_telefon" class="form-control" value="" type="text" required="">
                                                            </div>
                                                        </div>




                                                    </div>


<div class="row">
                                                        <div class="col-md-12">
                                                            <div class="form-group">
                                                                <label for="cph_main_tb_fatura_ozelistekler">
                                                                   <?=Genel::dil_ceviri("booking_page_special_requests")?>
                                                                </label>
<textarea name="tb_fatura_ozelistekler" rows="4" cols="5" id="cph_main_tb_fatura_ozelistekler" class="form-control"></textarea>

                                                            </div>
                                                        </div>




                                                    </div>

</div>
</div>	


<div class="panel panel-success" style="">
<div class="panel-heading" style="background-color: #e31d1a;color: #fff;font-weight: bold;"><?=Genel::dil_ceviri("booking_page_guest_info")?></div>
<div class="panel-body" style="font-size:14px">





                                                          



                                                                      
                                                                               
<div class="row" style="padding-bottom:15px">


<?php 
//echo $token." - ".$package_token;
$this->db->where('token',$token);
$packages=$this->db->where('package_token',$package_token)->get("booking_products_mice")->row();;
//print_r($packages);
$paxes_array=array();

for ($i=0; $i <$packages->adult ; $i++) { 
$paxes_array[]=array("pax_type"=>"ADT",
                     "age"=>33,
                     "pax_token"=>genel::token_uret(26));
}

if($packages->child_1_age>0){
$paxes_array[]=array("pax_type"=>"CHD",
                     "age"=>$packages->child_1_age,
                     "pax_token"=>genel::token_uret(26));  
}

if($packages->child_2_age>0){
$paxes_array[]=array("pax_type"=>"CHD",
                     "age"=>$packages->child_2_age,
                     "pax_token"=>genel::token_uret(26));  
}

$this->db->where("package_id",$packages->package_id);
$managers_main=$this->db->order_by('manager',"ASC")->get("mices_groups_packages_managers")->result();;
    ?>

<?php foreach ($paxes_array as $paxes) {  ?>
<input type="hidden" name="guesttype[]" value="<?=$paxes["pax_type"]?>">    
<input type="hidden" name="age[]" value="<?=$paxes["age"]?>">    
<div class="row">
<div class="col-md-2">
<div class="form-group">
    <label for="exampleInputEmail1">Cinsiyet</label>
<select class="form-control" name="gender[]">
<option value="1">Bay</option>    
<option value="2">Bayan</option>    
</select>
  </div>    
</div>
<div class="col-md-3">
<div class="form-group">
    <label for="exampleInputEmail1">İsim Soyisim</label>
    <input autocomplete="off" type="text" class="form-control " name="name_surname[]" value="" required="">    
  </div>
</div>
<?php if(config_item('mudurleri_goster')==1){?>
<div class="col-md-2">
<div class="form-group">
    <label for="exampleInputEmail1">Müdür</label>
<select class="form-control" name="manager[]" >
<option value="">Seçiniz</option>  
<?php foreach ($managers_main as $managers) {?>
<option value="<?=$managers->manager?>"><?=$managers->manager?></option>
<?php }?>
</select>
  </div>
</div>
<?php }else{?>
<input type="hidden" name="manager[]" value="">

<?php }?>  
<div class="col-md-2">
<div class="form-group">
    <label for="exampleInputEmail1">Şehir</label>
    <input autocomplete="off" type="text" class="form-control " name="city[]" value="">    
  </div>
</div>


<?php if($paxes["pax_type"]=="CHD"){?>

<div class="col-md-2">
<div class="form-group">
    <label for="exampleInputEmail1"><?=lang('date_of_birth')?> - (<?=lang('age')?>: <?=$paxes["age"]?>)</label>
    <input type="text" required="" class="form-control date2" name="date_of_birth[]" value="" data-parsley-minimumage="<?=$paxes["age"]?>" data-parsley-minimumage-message="Applicant must be at least <?=$paxes["age"]?> years of age to apply" data-parsley-validdate="" data-parsley-validdate-message="Please enter a valid date" data-parsley-pattern="/[0-9]\d*/"
     data-parsley-pattern-message="Only numbers allowed" data-parsley-trigger="keyup" data-parsley-validation-threshold="0">    
  </div>
</div>


<?php }?>

</div>
<?php }?>




                                                                       
                                                                   
                                                               


 








</div>

</div></div>
<button class="btn btn-success btn-block btn-sonraki-adim" disabled style="font-size: 18px; font-weight: bold"><?=Genel::dil_ceviri("booking_page_next_step")?> <i class="fa fa-angle-double-right"></i></button>





