<?php $__env->startSection('page_title'); ?>
  Transfer Booking
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_header_title'); ?>
  Transfer Booking
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('transfer_booking',Crypt::encrypt($booking->id),($booking->plot->plot_id.' '.$booking->plot->block_name.' '.$booking->plot->category))); ?>

<?php ($label_list = EF::getWhiteLabel()); ?>
<div class="row">
    <div class="col-md-4 col-sm-12">                

            <div class="card" style="height:540px;">
               <div class="card-header">            
               <div class="card-title">
               <strong>Booking Information </strong>
             </div>
              </div>
              <div class ="card-body cls-clear-padding">
                  
               
                       <div class="cls_border-bottom"> </div>
                        <div class="row">

                          <div class="col-md-5 cls_alignment col-sm-6">
                            <label class="  form-label">Name: </label>
                          </div>
                           <div class="col-md-7 cls_alignment col-sm-6">
                            <?php echo e(ucfirst($user->name)); ?>

                        </div>
                      </div>
                        <div class="cls_border-bottom"> </div>
                        <div class="row">

                          <div class="col-md-5 cls_alignment col-sm-6">
                            <label class="  form-label">Father Name: </label>
                          </div>
                           <div class="col-md-7 cls_alignment col-sm-6">
                            <?php echo e(ucfirst($user->fname)); ?>

                        </div>
                      </div>
                          <div class="cls_border-bottom"> </div>
                      <div class="row">
                          <div class="col-md-5 cls_alignment  col-sm-6">
                            <label class=" form-label">Cnic: </label>
                          </div>
                           <div class="col-md-7 cls_alignment col-sm-6">
                            <?php echo e(ucfirst($user->cnic)); ?>

                        </div>
                         </div>
                               <div class="cls_border-bottom"> </div>
                      <div class="row">
                          <div class="col-md-5 cls_alignment  col-sm-6">
                            <label class=" form-label">Contact: </label>
                          </div>
                           <div class="col-md-7 cls_alignment col-sm-6">
                            <?php echo e(ucfirst($user->contact)); ?>

                        </div>
                         </div>

                         <div class="cls_border-bottom"> </div>
                       <div class="row">
                          <div class="col-md-5 cls_alignment col-sm-6">
                            <label class="form-label">Booking Details: </label>
                          </div>
                           <div class="col-md-7 cls_alignment col-sm-6">
                           <?php echo e($plot->plot_id); ?><?php echo e($plot->type); ?>

                        </div>
                      </div>

                           <div class="cls_border-bottom"> </div>
                              <div class="row">
                          <div class="col-md-5 cls_alignment col-sm-6">
                            <label class="form-label">Category: </label>
                          </div>
                           <div class="col-md-7  cls_alignment col-sm-6">
                           <?php echo e($plot->category); ?>

                        </div>
                         </div>
                   
                         <div class="cls_border-bottom"> </div>
                        <div class="row">
                          <div class="col-md-5  cls_alignment col-sm-6">
                            <label class="form-label"><?php echo e(ucwords(str_replace('_',' ',$label_list['total_amount']))); ?> : </label>
                          </div>
                           <div class="col-md-7  cls_alignment col-sm-6">
                          <?php echo e(EF::numberFormat($booking->rate_per_marla)); ?>

                        </div>
                         </div>
                            <div class="cls_border-bottom"> </div>
                                 <div class="row">
                          <div class="col-md-5 cls_alignment col-sm-6">
                            <label class="form-label"><?php echo e(ucwords(str_replace('_',' ',$label_list['discount']))); ?>: </label>
                          </div>
                           <div class="col-md-7  cls_alignment col-sm-6">
                           <?php echo e(EF::numberFormat($booking->discount)); ?>

                        </div>
                         </div>
                     
                         <div class="cls_border-bottom"> </div>
                      <div class="row">
                          <div class="col-md-5 cls_alignment col-sm-6">
                            <label class="form-label" ><?php echo e(ucwords(str_replace('_',' ',$label_list['feature_charges']))); ?>: </label>
                          </div>
                           <div class="col-md-7 cls_alignment col-sm-6">
                            <?php echo e(EF::numberFormat($booking->feature_charges)); ?>

                        </div>
                         </div>
                             <div class="cls_border-bottom"> </div>
                      <div class="row">
                          <div class="col-md-5  cls_alignment col-sm-6">
                            <label class="form-label" ><?php echo e(ucwords(str_replace('_',' ',$label_list['agreed_amount']))); ?>: </label>
                          </div>
                           <div class="col-md-7  cls_alignment col-sm-6">
                            <span class="badge badge-primary">
                           <?php echo e(EF::numberFormat($booking->agreed_amount)); ?>

                         </span>
                        </div>
                         </div>
                               <div class="cls_border-bottom"> </div>
                      <div class="row">
                          <div class="col-md-5  cls_alignment col-sm-6">
                            <label class="form-label" ><?php echo e(ucwords(str_replace('_',' ',$label_list['booking_date']))); ?>: </label>
                          </div>
                           <div class="col-md-7 cls_alignment  col-sm-6">
                           <?php echo e(EF::dateFormat($booking->created_at)); ?>

                        </div>
                         </div>
                           
                </div>

                      <div class="card-status  card-status-left bg-blue">
                      </div>
                       
    </div>   

         
 </div>

                   <div class = "col-md-8 col-sm-12">
        <div class= "card ">
                        <div class="card-status bg-teal">
                      </div>
                               <div class="card-header"> 

               <h3 class="card-title">Transfer Booking</h3>

               </div>

               <div class="alert alert-primary card-alert mb-0">
                Please fill in the below details for transfer
               </div>
               <br>
                <?php echo e(Form::open(array( 'route' => 'transfer.store', 'id' => 'form_add_bookingtransfer', 'class' => 'cls_from'))); ?>

               <div class="row cls-tranfer-div">
                            <div class="col-sm-4">
                               <Label class="label-color" >Reg #</label>
            <small class="form-errors pull-right req" value=""><?php echo e($errors->first('reg_number',":message")); ?></small>

            <div class="input-group mb-3">
            
              <?php echo e(Form::Text('reg_number', $booking->ms, ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Reg # ' , 'aria-label' => 'Default','readonly' => 'true' , 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>    
          </div>
             
                <div class="col-sm-4">
                   <Label class="label-color" ><?php echo e(ucwords(str_replace('_',' ',$label_list['file']))); ?> #</label>
            <small class="form-errors pull-right req" value=""><?php echo e($errors->first($label_list['file'],":message")); ?></small>

            <div class="input-group mb-3">
             
              <?php echo e(Form::Text($label_list['file'], $booking->file_number , ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'File # ' , 'aria-label' => 'Default' ,'readonly' => 'true', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>    
          </div>
          
          <div class="col-sm-4">
             <Label class="label-color" ><?php echo e(ucwords(str_replace('_',' ',$label_list['reference']))); ?>#</label>
            <small class="form-errors pull-right req" value=""><?php echo e($errors->first($label_list['reference'],":message")); ?></small>

            <div class="input-group mb-3">
           
              <?php echo e(Form::Text($label_list['reference'], $booking->reference_number , ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Ref # ' , 'aria-label' => 'Default' ,'readonly' => 'true', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>    
          </div>

          <div class="col-sm-6">
             <Label class="label-color" ><?php echo e(ucwords(str_replace('_',' ',$label_list['booking_date']))); ?>:</label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first($label_list['booking_date'],":message")); ?></small>

            <div class="input-group mb-3">
          
              <?php echo e(Form::Date($label_list['booking_date'], $booking->created_at, ['class' => 'form-control form-control-sm cls_date', 'aria-label' => 'Default','readonly' => 'true', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>    
          </div>

           <div class="col-sm-6">
             <Label class="label-color" ><?php echo e(ucwords(str_replace('_',' ',$label_list['transfer_date']))); ?>: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first($label_list['transfer_date'],":message")); ?></small>

            <div class="input-group mb-3">
           
              <?php echo e(Form::Date($label_list['transfer_date'], '', ['class' => 'form-control form-control-sm cls_date', 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>    
          </div>

             <div class="col-sm-6">
               <Label class="label-color" >CNIC: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('customer_cnic',":message")); ?></small>
            <div class="input-group mb-3">
            
              <?php echo e(Form::Text('customer_cnic', '', ['class' => 'form-control form-control-sm  cls_cnic' ,'data-mask' => '00000-0000000-0', 'data-mask-clearifnotmatch' => 'true' ,'placeholder' => '00000-0000000-0'  , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','onchange' => 'validateCnic(event,this)'])); ?>

            </div>
               
          </div>

          <div class="col-sm-6">
             <Label class="label-color" >Name:</label>
            <div class="input-group mb-3">
              
              <?php echo e(Form::Text('customer_name', '', ['class' => 'form-control form-control-sm ', 'placeholder' => 'Name' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'readonly' => 'true'])); ?>


            </div> 
          </div> 
             <div class="col-sm-6">
               <Label class="label-color" ><?php echo e(ucwords(str_replace('_',' ',$label_list['transfer_fee']))); ?>:</label>
            <div class="input-group mb-3">
          
              <?php echo e(Form::Text($label_list['transfer_fee'], '', ['class' => 'form-control form-control-sm ', 'placeholder' => 'Transfer Fee' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','onkeyup' => 'feeInWords(event,this)'])); ?>

            </div> 
          </div> 
               <div class="col-sm-6">
                 <Label class="label-color" >Fee In Words:</label>
            <div class="input-group mb-3">
            
              <?php echo e(Form::Text('transfer_amount', '', ['class' => 'form-control form-control-sm transfer_fee', 'placeholder' => 'Fee In Words' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default' ,'readonly' => 'true'])); ?>

            </div> 
          </div> 

                <div class="col-sm-12">
                   <Label class="label-color" ><?php echo e(ucwords(str_replace('_',' ',$label_list['remarks']))); ?>:</label>
                  <?php echo e(Form::Textarea($label_list['remarks'], '', ['class' => 'form-control form-control-sm', 'placeholder' => 'Remarks' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','rows' => 2])); ?>

             </div>  
             <div class="modal-footer card-options">
 
        <button type="submit" class="btn btn-primary cls_submit pull-right" content="Submit">Submit</button>
                    <input type="hidden" name="bookinguser_id" value="<?php echo e(Crypt::encrypt($booking->user->id)); ?>" >  
                 <input type="hidden" name="user_id" >  
                   <input type="hidden" name="booking_id" value="<?php echo e(Crypt::encrypt($booking->id)); ?>" >    
               </div>
                <?php echo e(Form::close()); ?>

                                  
                    </div>
            


                    </div> 
                   
</div>

<?php $__env->stopSection(); ?>


<?php $__env->startSection('page_modal'); ?>
<?php echo $__env->make('user.modals.add_customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_script'); ?>
<?php echo $__env->make('scripts.booking', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 
<?php echo $__env->make('scripts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 
<?php echo $__env->make('scripts.validation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/booking/transfer_booking.blade.php ENDPATH**/ ?>