<?php echo $__env->make('admin/partial/header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

        <!-- start page container -->
        <div class="page-container">
 			<!-- start sidebar menu -->
 			<?php echo $__env->make('admin/partial/nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <!-- end sidebar menu --> 
			<!-- start page content -->
            <div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">
                            <div class=" pull-left">
                                <div class="page-title">Dashboard</div>
                            </div>
                            <?php echo $__env->make('admin/partial/sub2', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            <!--<ol class="breadcrumb page-breadcrumb pull-right">-->
                            <!--    <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>-->
                            <!--    </li>-->
                            <!--    <li class="active">Edit/View Self-Certified Income E-Form List</li>-->
                            <!--</ol>-->
                        </div>
                    </div>
                    

                   <?php
                   
                   $agency = DB::table('agencies')->where('id',$self_certified->agency)->first();
                   if($agency)
                   {
                    $name = $agency->company_re_name;
                   }
                   else
                   {
                    $name = 'Invalid Company ID';
                   }                
                 ?>

                  
                  <div class="panel panel-default">
                        <div class="panel-heading">
                              <h3 class="panel-title">Submitted to - <?php echo e($name); ?> for <?php echo e($self_certified->week_date); ?></h3>
                        </div>
                        <div class="panel-body">
                        <?php if(session()->has('success')): ?>

                               <div class="alert alert-success">

                                  <?php echo session()->get('success'); ?>


                                  </div>

                                    <?php endif; ?>     
                        <?php if(count($errors)>0): ?>
                        <ul class="list-group">
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="list-group text-danger">
                            <?php echo e($error); ?>

                            </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>

                        <?php endif; ?>
                            <div class="container">    
                              <form action="<?php echo e(url('Updatecertified',['id'=>$self_certified->id])); ?>" method="POST" class="form-horizontal" role="form" enctype="multipart/form-data">
                                      <?php echo e(csrf_field()); ?>

            <?php

  $str = date('Y-m-');


?>       <div class="form-group">
      <label>Total Amount Recived:</label>
      <input type="number" onchange="calculations()" id="A" class="form-control"  value="<?php echo e($self_certified->total_amount); ?>" name="total_amount">
      <h6> Amount recived in Ltd. Co Bank a/c </h6>
    </div><br> 

    <div class="row"> 
        <div class="col-md-6"> 
            <div class="form-group">
              <label>Night Out Expenses:</label>
              <input type="number" class="form-control" value="<?php echo e($self_certified->night_expenses); ?>"  name="night_expenses">
              <h6> Eg. Nights out </h6>
           </div>  
        </div>
        <div class="col-md-6">
            <div class="form-group">
              <label>Night Out Rate:</label>
              <input type="number" class="form-control" value="<?php echo e($self_certified->night_rate); ?>"  name="night_rate">
           </div>
        </div>
     </div><br>                 

     <div class="form-group">
      <label>Total Night Out Paid:</label>
      <input type="number" class="form-control" value="<?php echo e($self_certified->night_paid); ?>"   name="night_paid">
      <h6> Night out x rate eg 4 x €25.00 </h6>
    </div><br> 

    <div class="form-group">
      <label>Parking Expenses:</label>
      <input type="number" class="form-control" value="<?php echo e($self_certified->parking_expenses); ?>"   name="parking_expenses">
      <h6> Eg. Parking, tolls, Adblue </h6>
    </div><br> 


    <div class="form-group">
      <label>Less Deductible Expenses:</label>
      <input type="number" onchange="calculations()" id="B" class="form-control" value="<?php echo e($self_certified->deductible_expenses); ?>"   name="deductible_expenses">
    </div><br> 

    <div class="form-group">
      <label>Net Taxable Amount:</label>
      <input type="number" id="result1" ="" class="form-control" value="<?php echo e($self_certified->taxable_amount); ?>"   name="taxable_amount">
    </div><br> 

    <div class="form-group">
      <label>Deductions Payable</label>
      <input type="number" ="" id="result2" class="form-control" value="<?php echo e($self_certified->deduction_payable); ?>"   name="deduction_payable">
    </div><br> 

      <div class="form-group">
      <label>Please can you make your payment to:</label>
      <div class="container"> 
      <h6> AFFIRM ACCOUNTANCY SERVICES LIMITED </h6>
      <h6> NATWEST </h6>
      <h6> 60-21-59 </h6>
      <h6> 62077406 </h6>
      </div>
    </div><br> 

    <div class="form-group">
      <label>DATE PAID TO AFFIRM:</label>
      <input type="date" class="form-control" value="<?php echo e($self_certified->date_paid); ?>"   name="date_paid">
    </div><br> 

  <button type="submit" class="btn btn-primary" name="savetravel">Update</button>
   
    <br><br>


    </div>

                                    </div>

                                    
                                </div>

                              
                                      
                              </form>
                              
                        </div>
                  </div>
     
                    
                </div>
            </div>
            <!-- end page content -->
            
        </div>
        <!-- end page container -->
        <?php echo $__env->make('admin/partial/footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>