<div class="box-body">
  <div class="view_booking_modal">
    <div class="row">
      <div class="col-md-12">
        <div style="text-decoration: underline;font-size: 20px;padding-bottom: 5px;font-weight: 700">Flight Details</div>
        <div class="row">
          <div class="col-md-6">
            <div class="row">
              <div class="col-md-5"> Flight Book Id</div>
              <div class="col-md-1">:</div>
              <div class="col-md-5"> <?=  $bookData->flight_book_id ?></div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="row">
              <div class="col-md-5">Flight Name</div>
              <div class="col-md-1">:</div>
              <div class="col-md-5"> <?=  $bookData->flight_name ?></div>
            </div>
          </div>
        </div>
        <?php
          $bookDetails = !empty($bookData->request_data)?json_decode($bookData->request_data)->flightRequestDetails:'';
          if($bookDetails != ''){
            $brk = ', ';
            $first_name = explode('<br>',$bookDetails->first_name);
            $last_name = explode('<br>',$bookDetails->last_name);
            $gender = explode('<br>',$bookDetails->gender);
            $issue_country = explode('<br>',$bookDetails->issue_country);
            $passport_expiry = explode('<br>',$bookDetails->passport_expiry);
            $passport_no = explode('<br>',$bookDetails->passport_no);
            $dob = explode('<br>',$bookDetails->dob);
            $child_dob = explode('<br>',$bookDetails->child_dob);
            $child_gender = explode('<br>',$bookDetails->child_gender);
            $child_first_name = explode('<br>',$bookDetails->child_first_name);
            $child_last_name = explode('<br>',$bookDetails->child_last_name);
            $child_issue_country = explode('<br>',$bookDetails->child_issue_country);
            $child_passport_expiry_date = explode('<br>',$bookDetails->child_passport_expiry_date);
            $child_passport_no = explode('<br>',$bookDetails->child_passport_no);
            $infant_dob = explode('<br>',$bookDetails->infant_dob);
            $infant_gender = explode('<br>',$bookDetails->infant_gender);
            $infant_first_name = explode('<br>',$bookDetails->infant_first_name);
            $infant_last_name = explode('<br>',$bookDetails->infant_last_name);
            $infant_issue_country = explode('<br>',$bookDetails->infant_issue_country);
            $infant_passport_expiry_date = explode('<br>',$bookDetails->infant_passport_expiry_date);
            $infant_passport_no = explode('<br>',$bookDetails->infant_passport_no);
           // pr($bookDetails);

            ?>
            <div class="" style="padding: 25px 0px 5px 0px;font-size: 19px;text-decoration: underline;font-weight: 700">  Guest Details </div>

            <div class="" style="padding: 5px 0px 5px 0px;font-size: 16px;font-weight: 600"> 
              Contact Details</div>

            <div class="row">
              <div class="col-md-6">
                <div class="row">
                  <div class="col-md-5">Email Id</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-5"> <?=  $bookDetails->email_id ?></div>
                </div>
              </div>
              <div class="col-md-6">
                <div class="row">
                  <div class="col-md-5">Mobile Number</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-5"> <?=  $bookDetails->mobile_no ?></div>
                </div>
              </div>
            </div>

            <div class="row">
              <div class="col-md-6">
                <div class="row">
                  <div class="col-md-5">Area Code</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-5"> <?=  $bookDetails->area_code ?></div>
                </div>
              </div>
              <div class="col-md-6">
                <div class="row">
                  <div class="col-md-5">Country Code</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-5"> <?=  $bookDetails->country_code ?></div>
                </div>
              </div>
            </div>

            <div class="" style="padding: 5px 0px 5px 0px;font-size: 16px;font-weight: 600"> 
              Details Of Adults <small>(<?= $bookDetails->adult_flight?> adults)</small></div>

            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3"> Name</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->adult_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $first_name[$i] .' '.$last_name[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">DOB</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->adult_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $dob[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3"> Gender</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->adult_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. (($gender[$i] == 'F')?'Female':'Male') ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Issue Country</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->adult_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $issue_country[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Passport Expiry</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->adult_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $passport_expiry[$i] ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Passport Number</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->adult_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $passport_no[$i] ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
<?php if($bookDetails->child_flight > 0) { ?>
            <div class="" style="padding: 5px 0px 5px 0px;font-size: 16px;font-weight: 600"> 
              Details Of Children  <small>(<?= $bookDetails->child_flight?> child)</small></div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3"> Name</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->child_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $child_first_name[$i] .' '.$child_last_name[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">DOB</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->child_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $child_dob[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3"> Gender</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->child_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. (($child_gender[$i] == 'F')?'Female':'Male') ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Issue Country</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->child_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $child_issue_country[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Passport Expiry</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->child_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $child_passport_expiry_date[$i] ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Passport Number</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->child_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $child_passport_no[$i] ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
<?php } if( $bookDetails->infant_flight > 0 ) {?>
            <div class="" style="padding: 5px 0px 5px 0px;font-size: 16px;font-weight: 600"> 
              Details Of Infants  <small>(<?= $bookDetails->infant_flight?> infant)</small></div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3"> Name</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->infant_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $infant_first_name[$i] .' '.$infant_last_name[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">DOB</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->infant_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $infant_dob[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3"> Gender</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->infant_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. (($infant_gender[$i] == 'F')?'Female':'Male') ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Issue Country</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->infant_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $infant_issue_country[$i]  ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Passport Expiry</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->infant_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $infant_passport_expiry_date[$i] ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="row">
                  <div class="col-md-3">Passport Number</div>
                  <div class="col-md-1">:</div>
                  <div class="col-md-6"> 
                    <div class="row">
                      <?php 
                        for ($i=0; $i<$bookDetails->infant_flight;$i++) { ?>
                          <div class="col-md-4">
                            <?= '('.($i + 1).') '. $infant_passport_no[$i] ?>
                          </div>
                      <?php 
                        }
                      ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>

        <?php 
          } }
        ?>
      </div>
    </div>
  </div>
</div>