<?php



/* 

 * Author       : Kowsalya K

 * Purpose      : The edit page for Outdoor Services Billing

 * Created On   : 2016-08-12  

 */

?>

<script type="text/javascript" src="<?php echo base_url();?>assets/js/billing/outdoor_services.js"></script>

<aside class="right-side" id="edit-page">

    <section class="content-header">

        <div class="title_bar">

            <h1 class="major_txt_color"><a href="<?php echo get_bill_list_url(); ?>" class="list-btn"><i class="fa fa-list" title="Go to Listing"></i></a><?php echo $title; ?> - Edit</h1>

            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>

        </div>

    </section>

    <?php $general = get_general_setting();?>

    <section class="content">

        <div class="row" id="main-content">

            <div class="col-xs-12">

                <form action="<?php echo $form_action;?>" method="post"  enctype="multipart/form-data" method="post" id="form-reset" >    

                    <input type="hidden" name="hidden_id" value="<?php echo $outdoor->id;?>" />

                    <input type="hidden" name="type_id" value="<?php echo $outdoor->type_id; ?>" />

                    <input type="hidden" name="book_status" value="<?php echo $outdoor->book_status;?>" />

                    <div class="box box-danger">

                        <div class="box-body">

                            <ul class="error_container"></ul>

                            <div class="col-xs-12">

                                <div class="col-md-6">

                                    <div class="form-group float-clear">

                                        <label>Receipt No</label>

                                        <input type="text" class="form-control readonly" name="rec_no" value="<?php echo (($general->prefix == 1) ? $outdoor->prefix : '') . $outdoor->receipt_no; ?>" placeholder="Auto Generated" readonly />

                                    </div>

                                </div>

                                

                                <div class="col-md-6">

                                    <div class="form-group float-clear" style="text-align: right;">

                                        <button class="btn btn-success dialog-btn" data-target="#avail-dialog" id="avail-btn" style="display: none;"><i class="fa fa-clock-o" style="color: #fff;"></i> Availability</button>

                                        <button class="btn btn-success dialog-btn" data-target="#booked-dialog" id="bkd-btn"><i class="fa fa-book"></i> Booked Details</button>

                                    </div>

                                </div>

                            </div>

                            

                            <div class="col-xs-12 blck">

                                <div class="sub-title" ><h4><i class="fa fa-fire" style="font-size: 14px;"></i> Function Details</h4><i class="ctrl opener opened fa fa-chevron-up" style="float: right; margin-top: -25px;"></i></div>

                                <div class="blck-content col-xs-12">

                                    <div class="col-md-6">        

                                        <div class="form-group">

                                            <label>Type<span class="required">*</span></label>

                                            <div class="input-group">

                                                <!--<select name="fn_type" class="form-control select2 req">

                                                    <option value="">-- Select Type --</option>

                                                    <?php foreach( $fn_types as $k => $fn_type ) :?>

                                                        <option value="<?php echo $fn_type['id']; ?>" data-amt="<?php echo $fn_type['amount']; ?>" data-prefix="<?php echo $fn_type['prefix']; ?>" <?php echo ($fn_type['id'] == $outdoor->service_id) ? 'selected' : '';?> ><?php echo $fn_type['name']; ?></option>

                                                    <?php endforeach;?>

                                                </select>-->

                                                

                                                <input type="text" class="form-control readonly" name="type_name" value="<?php echo $outdoor->service;?>" readonly />

                                                <input type="hidden" name="fn_type" data-amt="<?php echo $outdoor->ser_amount; ?>" value="<?php echo $outdoor->service_id;?>" />

                                            </div>

                                        </div>

                                        

                                        <div class="form-group float-clear">

                                            <label>Function Date</label>

                                            <div class="input-group">

                                            <input type="text" class="form-control date-picker" name="fn_date" placeholder="DD-MM-YYYY" value="<?php echo date('d-m-Y',strtotime($outdoor->date)); ?>" />

                                            <div class="input-group-addon"><i class="fa fa-calendar"></i></div>

                                            </div>

                                        </div>

                                    </div>



                                    <div class="col-md-6">       

                                        <div class="form-group">

                                            <label>Period<span class="required">*</span></label>

                                            <div class="input-group">

                                                <select name="fn_period" class="form-control select2">

                                                    <option value="1" <?php echo ($outdoor->period == 1) ? 'selected' : '';?>>Morning</option>

                                                    <option value="2" <?php echo ($outdoor->period == 2) ? 'selected' : '';?>>Evening</option>

                                                </select>

                                            </div>

                                        </div>

                                    </div>

                                    

                                    <div class="col-md-12">

                                        <div class="form-group">

                                            <label class="leftcol timelabel_res">Time</label>

                                            <div class="input-group timelabel_res_val">

                                                <label><input type="text" class="form-ctrl time-picker" style="text-align: right;" name="fn_from_time" placeholder="HH:MM" data-err-msg="From Time" value="<?php echo date('h:i',strtotime($outdoor->from_time));?>" /> &nbsp;&nbsp;</label> 

                                            </div>

                                            <label class="leftcol tolabel_res">To</label>

                                            <div class="input-group timelabel_res_val">

                                                <label><input type="text" class="form-ctrl time-picker" style="text-align: right;" name="fn_to_time" placeholder="HH:MM" data-err-msg="To Time" value="<?php echo date('h:i',strtotime($outdoor->to_time));?>" /></label>

                                            </div>

                                        </div>

                                    </div>

                                </div> <!-- blck-content -->    

                            </div> <!-- blck -->

                                    

                            <div class="col-xs-12 blck">

                                <div class="sub-title" ><h4><i class="fa fa-fire" style="font-size: 14px;"></i> Contact Details</h4><i class="ctrl opener fa fa-chevron-down" style="float: right; margin-top: -25px;"></i></div>

                                <div class="blck-content col-xs-12" style="display: none;">

                                    <div class="col-md-6">        

                                        <div class="form-group float-clear">

                                            <label>Devotee Name<span class="required">*</span></label>

                                            <input type="text" class="form-control req name" name="name" placeholder="Name" data-err-target=".sub-title" value="<?php echo $outdoor->devotee_name;?>" />

                                        </div>

                                        

                                        <div class="form-group float-clear">

                                            <label>Contact No 1</label>

                                            <div class="input-group">

                                                <input type="text" class="form-control contact-no num-pad" name="contact_no1" placeholder="Contact No 1" value="<?php echo $outdoor->contact_no1;?>" />

                                                <div class="input-group-addon"><i class="fa fa-phone"></i></div>

                                            </div>

                                        </div>



                                        <div class="form-group float-clear">

                                            <label>Address</label>

                                            <textarea class="form-control address" name="ct_address"><?php echo $outdoor->address;?></textarea>

                                        </div>

                                    </div>



                                    <div class="col-md-6">       

                                        <div class="form-group">

                                            <label>Tamil Name</label>

                                            <div class="input-group">

                                                <input class="form-control multi tamil-name input-tamil" type="text" name="tamil_name" placeholder="jkpH;bgah;" onclick="set_tamil_keypad(this);" value="<?php echo $outdoor->tamil_name;?>" />

                                                <div class="input-group-addon"><i class="fa fa-keyboard-o"></i></div>

                                            </div>

                                        </div>

                                        

                                        <div class="form-group float-clear">

                                            <label>Contact No 2</label>

                                            <div class="input-group">

                                                <input type="text" class="form-control contact-no num-pad" name="contact_no2" placeholder="Contact No 2" value="<?php echo $outdoor->contact_no2;?>" />

                                                <div class="input-group-addon"><i class="fa fa-phone"></i></div>

                                            </div>

                                        </div>

                                        

                                        <div class="form-group float-clear">

                                            <label>Email Id</label>

                                            <div class="input-group">

                                                <input type="text" class="form-control email" name="ct_email" placeholder="Email Address" value="<?php echo $outdoor->email;?>" />

                                                <div class="input-group-addon"><i class="fa fa-envelope"></i></div>

                                            </div>

                                        </div>

                                        

                                        <div class="form-group float-clear">

                                            <label>Postal Code</label>

                                            <input type="text" class="form-control" name="postal_code" placeholder="Postal Code" value="<?php echo $outdoor->postal_code;?>" />

                                        </div>

                                    </div>

                                </div> <!-- blck-content -->    

                            </div> <!-- blck -->

                            

                            <div class="col-xs-12 blck">

                                <div class="sub-title" ><h4><i class="fa fa-fire" style="font-size: 14px;"></i> Priest Details (Please Choose atleast one)</h4><i class="ctrl opener fa fa-chevron-down" style="float: right; margin-top: -25px;"></i></div>

                                <div class="blck-content col-xs-12" style="display: none;">

                                    <div class="col-md-6">     

                                        <div class="form-group">

                                            <label>Priest Name</label>

                                            <div class="input-group">

                                                <select name="priest_name" class="form-control select2">

                                                    <option value="">-- Select Priest Name --</option>

                                                    <?php foreach($priest as $key=>$value) {?>

                                                        <option value="<?php echo $value->id;?>" <?php echo ($value->id == $outdoor->priest_id) ? 'selected' : '';?>><?php echo $value->name;?></option>

                                                    <?php } ?>

                                                </select>

                                            </div>

                                        </div>

                                        

                                        <div class="form-group">

                                            <label>Nathaswaram Name</label>

                                            <div class="input-group">

                                                <select name="nathaswaram_name" class="form-control select2">

                                                    <option value="">-- Select Nathaswaram Name --</option>

                                                    <?php foreach($nathaswaram as $key=>$value) {?>

                                                        <option value="<?php echo $value->id;?>" <?php echo ($value->id == $outdoor->nathaswaram_id) ? 'selected' : '';?>><?php echo $value->name;?></option>

                                                    <?php } ?>

                                                </select>

                                            </div>

                                        </div>

                                    </div>



                                    <div class="col-md-6">

                                        <div class="form-group">

                                            <label>Melam Name</label>

                                            <div class="input-group">

                                                <select name="melam_name" class="form-control select2">

                                                    <option value="">-- Select Melam Name --</option>

                                                    <?php foreach($melam as $key=>$value) {?>

                                                        <option value="<?php echo $value->id;?>" <?php echo ($value->id == $outdoor->melam_id) ? 'selected' : '';?>><?php echo $value->name;?></option>

                                                    <?php } ?>

                                                </select>

                                            </div>

                                        </div>
                                        
                                        <div class="form-group">

                                            <label>Temple Assistant Name</label>

                                            <div class="input-group">

                                                <select name="temple_assistant_name" class="form-control select2">

                                                    <option value="">-- Select Temple Assistant Name --</option>

                                                    <?php foreach($temple_assistant as $key=>$value) {?>

                                                        <option value="<?php echo $value->id;?>" <?php echo ($value->id == $outdoor->temple_assistant_id) ? 'selected' : '';?>><?php echo $value->name;?></option>

                                                    <?php } ?>

                                                </select>

                                            </div>

                                        </div>

                                    </div>

                                </div> <!-- blck-content -->    

                            </div> <!-- blck -->

                            

                            <div class="col-xs-12 blck innr-table">

                                <div class="sub-title" ><h4><i class="fa fa-fire" style="font-size: 14px;"></i> Additionl Payment Details</h4><i class="ctrl opener fa fa-chevron-up opened" style="float: right; margin-top: -25px;"></i></div>

                                <?php                                    

									$items = !empty($additional_payments) ? $additional_payments : '';

									$items_cnt = is_array($items) ? count( $items ) : 0;

									if(!empty($items)){

									foreach( $items as $ik => $item ) :

								?>

                                <div class="blck-content col-xs-12">

                                   <div class="col-md-6"> 

                                        <div class="form-group float-clear">

                                            <label>Description</label>

                                            <textarea class="form-control" placeholder="<?php echo ($item['desc'])? $item['desc'] : ''; ?>" <?php echo ($item['bwh_remarks'])? "readonly" : ''; ?>></textarea>

                                        </div>

                                    </div>

                                    

                                    <div class="col-md-5">     

                                        <div class="form-group float-clear">

                                            <label>Amount</label>

                                            <input type="text" class="form-control" placeholder="<?php echo ($item['additional_amount'])? $item['additional_amount'] : "0.00"; ?>" <?php echo ($item['bwh_additional_amount'])? "readonly" : ""; ?>/>

                                        </div>

                                    </div>

                                </div> <!-- blck-content --> 

                                <?php endforeach; ?>

                                <?php } ?>

                                 <div class="blck-content col-xs-12 row-details">

                                   <div class="col-md-6"> 

                                        <div class="form-group float-clear">

                                            <label>Description</label>

                                            <textarea class="form-control add_desc" name="add_desc[]" id="add_desc"></textarea>

                                        </div>

                                    </div>

                                    

                                    <div class="col-md-5">     

                                        <div class="form-group float-clear">

                                            <label>Amount</label>

                                            <input type="text" class="form-control add_amount" name="add_amount[]" id="add_amount" placeholder="0.00"/>

                                        </div>

                                    </div>

                                     <div class="col-md-1 ctrls">

                                         <i class="fa fa-plus-circle add-btn"></i>

                                    </div> 

                                </div> <!-- blck-content --> 

                            </div>

                            <div class="col-xs-12 blck">

                                <div class="sub-title" ><h4><i class="fa fa-fire" style="font-size: 14px;"></i> Cost Details</h4><i class="ctrl opener fa fa-chevron-down" style="float: right; margin-top: -25px;"></i></div>

                                <div class="blck-content col-xs-12" style="display: none;">

                                    <div class="col-md-6">     

                                        <div class="form-group float-clear">

                                            <label>Amount</label>

                                            <input type="text" class="form-control amount num-pad" name="cs_amount" placeholder="0.00" value="<?php echo $outdoor->os_amount;?>" />
											<input type="hidden" class="form-control amount readonly" name="paid_addit_amount" placeholder="0.00" readonly value="<?php echo $outdoor->os_amount; ?>"/>
                                        </div>

                                    </div>



                                    <div class="col-md-6">

                                        <div class="form-group float-clear">

                                            <label>Description</label>

                                            <textarea class="form-control" name="cs_desc"><?php echo $outdoor->desc;?></textarea>

                                        </div>

                                    </div>

                                </div> <!-- blck-content -->    

                            </div> <!-- blck -->

                        </div>

                        

                        

                        <div class="box-footer form-actions float-clear" style="text-align: right; padding-right: 30px;">

                            <button class="btn btn-primary" type="reset"><i class="fa fa-trash"></i> Clear</button>

                            <?php if($outdoor->book_status == 2) {?>

                                <button type="submit" class="btn btn-success payment-btn" name="book-now" value="book-now" ><i class="fa fa-thumb-tack"></i> Book Now</button>

                            <?php } ?>

                            <button type="button" class="btn btn-danger" id="payment-btn"><i class="fa fa-credit-card"></i> Payment</button>

                        </div>

                    </div><!-- /.box -->

                    

                    

                    <!-- Payment types Modal -->

                    <div class="modal fade" id="ptypes-dialog" role="dialog">

                        <div class="modal-dialog">

                            <!-- Modal content-->

                            <div class="modal-content">

                                    <div class="modal-header" style="background-color: #337AB7;">

                                        <h4 class="modal-title" style="color: #FFF;">Payment Details</h4>

                                    </div>

                                    <div class="modal-body col-xs-12">

                                        <div class="err-blck" style="margin-top: -20px;"></div>

                                        <div class="row" id="pay-amounts-box">



                                            <div class="col-md-6">                                    

                                                <div class="form-group float-clear">

                                                    <label>Amount To Pay</label>

                                                    <input type="text" class="form-control readonly" name="pay_amount" placeholder="0.00" readonly value="<?php echo $outdoor->os_amount;?>" />

                                                </div>

                                            </div>



                                            <div class="col-md-6">                                    

                                                <div class="form-group float-clear">

                                                    <label>Now Paying</label>

                                                    <input type="text" class="form-control readonly" name="paid_amount" placeholder="0.00" readonly value="<?php echo $paid_amount->paidAmount;?>" />

                                                </div>

                                            </div>



                                        </div>



                                        <div class="row" id="cheque-box">

                                            <?php foreach( $payments as $k => $ptype ) : 

                                                $paidtype = $this->outdoor_services_model->get_paid_type($outdoor->type_id,$outdoor->id,$ptype->id);

                                               

                                               if($ptype->slug == 'cheque' && $paidtype->pay_type_id == $ptype->id) :

                                                

                                                $pay_details   = !empty($paidtype->pay_details) ? json_decode($paidtype->pay_details) : '';

                                                $pay_details   = !is_array($pay_details) ? get_object_vars($pay_details) : $pay_details; ?>

                                                

                                                <input type="hidden" class="hidden_bank_name"  name="hidden_bank_name" value="<?php echo (!empty($pay_details['name'])) ? $pay_details['name'] : '';?>"/>

                                                <input type="hidden" class="hidden_chq_no"  name="hidden_chq_no" value="<?php echo (!empty($pay_details['no'])) ?  $pay_details['no'] : '';?>"/>

                                                <input type="hidden" class="hidden_chq_date"  name="hidden_chq_date" value="<?php echo (!empty($pay_details['date'])) ? (date('d-m-Y',strtotime($pay_details['date']))) : date('d-m-Y');?>"/>

                                                <?php endif;

                                            endforeach;

                                            ?>

                                            <div class="col-xs-4">                                    

                                                <div class="form-group float-clear">

                                                    <label>Bank Name</label>

                                                    <input type="text" class="form-control input"  name="chq_bnk_name" placeholder="Bank Name" value=""/>

                                                </div>

                                            </div>

                    

                                            <div class="col-xs-4">                                    

                                                <div class="form-group float-clear">

                                                    <label>No</label>

                                                    <input type="text" class="form-control input"  name="chq_no" placeholder="No" value=""/>

                                                </div>

                                            </div>

                                            

                                            <div class="col-xs-4">                                    

                                                <div class="form-group float-clear">

                                                    <label>Date</label>

                                                    <input type="text" class="form-control input date-picker"  name="chq_date" placeholder="dd/mm/YYYY" value="<?php echo date('d-m-Y');?>"/>

                                                </div>

                                            </div>

                    

                                        </div>                                        

                                        

                                        <div style="margin-top: 10px; border-top: 1px dotted #1ba; padding: 20px 0px;">

                                            <div class="row">

                                                <?php

                                                    $step = 4;

                                                    foreach( $payments as $k => $ptype ) :

                                                        $paidtype = $this->outdoor_services_model->get_paid_type($outdoor->type_id,$outdoor->id,$ptype->id);

                                                        echo '<div class="col-md-'. floor( 12 / $step ) .'">';

                                                        $paidID = $this->outdoor_services_model->get_paidID($outdoor->type_id,$outdoor->id,$ptype->id);

                                                        foreach($paidID as $i=>$paidid) { ?>

                                                            <input type="hidden" class="paid_hidden_id" name="paid_hidden_id[]" value="<?php echo $paidid->id;?>" />

                                                        <?php } ?>

                                                            <div class="form-group float-clear blck-content ptype-box" id="ptype-box-<?php echo $ptype->slug; ?>" style="margin: 10px 10px;">

                                                                <div class="pay-box">

                                                                    <?php if( !empty( $ptype->img_url ) && file_exists( DIR_PAY_TYPE . $ptype->img_url ) ) : ?><div id="pay-preview"><img src="<?php echo BASE_URL . DIR_PAY_TYPE . $ptype->img_url; ?>" /></div><?php endif; ?>

                                                                    <label><?php echo $ptype->name; ?></label>

                                                                </div>

                                                                <input type="text" class="input pay-type amount num-pad" data-id="<?php echo $ptype->id; ?>" name="pay_type[<?php echo $ptype->id; ?>]" value="<?php echo ((!empty($paidtype)) && $ptype->id == $paidtype->pay_type_id) ? $paidtype->pay_amount : ''; ?>" />

                                                            </div>

                                                        <?php

                                                        echo '</div>';



                                                        if( ($k+1) % $step == 0 ) :

                                                            echo '</div><div class="row">';

                                                        endif;



                                                    endforeach;

                                                ?>

                                            </div>

                                        </div>

                                        



                                    </div>



                                    <div class="modal-footer" style="padding-right: 30px;">

                                        <button type="button" class="btn btn-primary cancel_popup" id="sbmt-cancel-btn" data-dismiss="modal"><i class="fa fa-chevron-left"></i> Go Back</button>

                                        <button type="submit" id="sbmt-btn" class="btn btn-danger"><i class="fa fa-floppy-o"></i> Submit</button>

                                        

                                    </div>

                                



                            </div>   <!-- Modal Content -->     

                        </div> 

                    </div> <!-- Payment Types Dialog -->

                    

                    <!-- Availability Modal -->

                    <div class="modal fade" id="avail-dialog" role="dialog">

                        <div class="modal-dialog" style="width:70%;">

                            <!-- Modal content-->

                            <div class="modal-content">

                                



                                    <div class="modal-header" style="background-color: #337AB7;">

                                        <button type="button" class="close cancel_popup" data-dismiss="modal" style="color: #FFF;">x</button>

                                        <h4 class="modal-title" style="color: #FFF;">Availability</h4>

                                    </div>

                                    <div class="modal-body">

                                        <ul class="error_container"></ul>

                                        <div class=" col-xs-12">

                                            <div class="col-md-4">

                                                <div class="form-group float-clear">

                                                    <label>Type<span class="required">*</span></label>

                                                    <select name="a_fn-type" class="form-control select2 ignore req">

                                                        <option value="">-- Select Type --</option>

                                                        <?php foreach( $fn_types as $k => $fn_type ) :?>

                                                            <option value="<?php echo $fn_type['id']; ?>" data-amt="<?php echo $fn_type['amount']; ?>" data-prefix="<?php echo $fn_type['prefix']; ?>" ><?php echo $fn_type['name']; ?></option>

                                                        <?php endforeach;?>

                                                    </select>

                                                </div>

                                            </div>

                                            <div class="col-md-4">

                                                <div class="form-group float-clear">

                                                    <label>From Date<span class="required">*</span></label>

                                                    <input type="text" class="form-control bk_from_date ignore req" name="a_from_date" placeholder="dd-mm-yyyy" value="" />

                                                </div>

                                            </div>

                                            <div class="col-md-4">                                    

                                                <div class="form-group float-clear">

                                                    <label>To Date<span class="required">*</span></label>

                                                    <input type="text" class="form-control bk_to_date ignore req" name="a_to_date" placeholder="dd-mm-yyyy" value="" />

                                                </div>

                                            </div> 

                                        </div>

                                    </div>



                                    <div class="modal-footer" style="padding-right: 30px;">

                                        <button type="button" class="btn btn-danger" id="chk-btn"><i class="fa fa-check"></i> Check</button>

                                        <button type="button" class="btn btn-primary cancel_popup" data-dismiss="modal"><i class="fa fa-ban"></i> Cancel</button>

                                    </div>

                                



                            </div>   <!-- Modal Content -->     

                        </div> 

                    </div> <!-- Availability Dialog -->

                </form>

            </div><!-- /.col-xs-12 -->

        </div><!-- /.row -->

        

        <!-- Start Modal -->

        

       <div class="modal fade" id="booked-dialog" role="dialog">

            <div class="modal-dialog" style="width: 90%;">

                <!-- Modal content-->

                <div class="modal-content">



                    <div class="modal-header" style="background-color: #337AB7;">

                        <button type="button" class="close cancel_popup" data-dismiss="modal" style="color: #FFF;">x</button>

                        <h4 class="modal-title" style="color: #FFF;">Booked Details</h4>

                    </div>

                    <div class="modal-body col-xs-12" style="margin-bottom: 30px; border-bottom: 1px dotted #1ba;">

                    

                        

                        <form name="m">

                                                                 

                                <div class="col-xs-3">

                                    <label>Start Date</label>

                                    <input type="text" class="form-control bk_from_date" name="bk_from_date" placeholder="DD-MM-YYYY" value="" />

                                </div>



                                <div class="col-xs-3">

                                    <label>End Date</label>

                                    <input type="text" class="form-control bk_to_date" name="bk_to_date" placeholder="DD-MM-YYYY" value="" />

                                </div>  

                                  

                                <div class="col-xs-2">

                                    <label>Period</label>

                                    <div class="input-group">

                                        <select name="bk_period" class="form-control select2">

                                            <option value="">-- Select Period --</option>

                                            <option value="1">Morning</option>

                                            <option value="2">Evening</option>

                                        </select>

                                    </div>

                                </div>

                            

                                <div class="col-xs-4" style="text-align: right; padding: 25px 0px; margin-left: -35px; z-index: 99;">

                                    <button type="button" class="btn btn-primary reset-btn"><i class="fa fa-times"></i> Reset</button>

                                    <button type="button" class="btn btn-danger filter-btn"><i class="fa fa-filter"></i> Filter</button>

                                    <button type="button" class="btn btn-primary cancel_popup" data-dismiss="modal"><i class="fa fa-ban"></i> Cancel</button>



                                </div>

                        </form>



                    </div>



                    <div class="modal-footer" style="padding-right: 30px;">

                        

                    </div>





                </div>   <!-- Modal Content -->     

            </div> 

        </div> <!-- Booked Dialog -->

    </section><!-- /.content -->

</aside>