

<?php $__env->startSection('title'); ?>
Fixed Asset Vouchers 
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
<ol class="breadcrumb pull-right">
        <li><a href="<?php echo e(route('home')); ?>"><i class="fa fa-dashboard"></i> Home</a></li>

        <li class="active">Fixed Asset Vouchers</li>
      </ol>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>


            <div class="container-fluid">


                <!-- /row -->
                <div class="row" >
                    <div class="col-sm-12">

                        <div class="white-box">
                            <h3 class="box-title">Fixed Asset</h3>
                            
                            <!-- Nav tabs -->
                            <ul class="nav customtab nav-tabs" role="tablist">
                                <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab" aria-expanded="true"><span class="visible-xs"><i class="ti-home"></i></span><span class="hidden-xs">Depreciation</span></a></li>
                           
                                <li role="presentation" class=""><a href="#home1" aria-controls="profile" role="tab" data-toggle="tab" aria-expanded="false"><span class="visible-xs"><i class="ti-user"></i></span> <span class="hidden-xs">Sold</span></a></li>
                                
                            </ul>
                            <!-- Tab panes -->
                            <div class="tab-content">

                                <div role="tabpanel" class="tab-pane fade active in" id="home">
                                    <div class="table-responsive">

                                      
                                        <div class="clearfix"></div>
                                <table id="myTable1" class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th>Type</th>
                                            <th>For the Period</th>
                                            <th>Maintainance</th>
                                            <th style="width: 185px!important;">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>

                                        <?php $count = 1;?>
                                        
                                        <?php $__currentLoopData = $fixed_asset_depreciations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
											<td><?php echo e($count++); ?></td>
											<td><?php echo e($list->asset_type->name); ?></td> 
											<td><?php echo e(number_format($list->ftp)); ?></td>
											<td><?php echo e(number_format($list->maint)); ?></td>

											  <td class="text-nowrap">
                                                
                                             
                                              <a href="#"  onclick="$('#voucher-form').submit()"  class="btn btn-primary"> Make JV</a>
                                           
                                              <!--<form id="voucher-form" method="post" action="<?php echo e(route('create-voucher')); ?>">
                                                    <?php echo e(csrf_field()); ?>

                                                    <input type="hidden" name="type" value="<?php echo e(\App\GeneralJournalEntry::booking); ?>">
                                                    <input type="hidden" name="id" value="<?php echo e($list->id); ?>">
                                                    <input type="hidden" name="control" value="<?php echo e(\App\ControlAccount::CUSTOMER); ?>">

                                                </form> -->
                                                
                                            </td>
                                            
                                        </tr>

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

                                    </tbody>
                                </table>
                                
                            </div>
                                    <div class="clearfix"></div>
                                </div>


                                <div role="tabpanel" class="tab-pane fade" id="home1">
                                    <div class="table-responsive">
                                <table id="myTable1" class="table table-striped">
                                    <thead>
                                        <tr>
                                             <th>#</th>
                                            <th>Type</th>
                                            <th>Writen Down Value</th>
                                            <th>Maintainance</th>
                                            <th style="width: 185px!important;">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $count =1;?>
                                        

                                       <?php $__currentLoopData = $fixed_asset_solds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
											<td><?php echo e($count++); ?></td>
											<td><?php echo e($list->asset_type->name); ?></td> 
											<td><?php echo e(number_format($list->ftp)); ?></td>
											<td><?php echo e(number_format($list->maint)); ?></td>

											  <td class="text-nowrap">
                                                
                                             
                                              <a href="#"  onclick="$('#voucher-form').submit()"  class="btn btn-primary"> Make JV</a>
                                           
                                              <!--   <form id="voucher-form" method="post" action="<?php echo e(route('create-voucher')); ?>">
                                                    <?php echo e(csrf_field()); ?>

                                                    <input type="hidden" name="type" value="<?php echo e(\App\GeneralJournalEntry::booking); ?>">
                                                    <input type="hidden" name="id" value="<?php echo e($list->id); ?>">
                                                    <input type="hidden" name="control" value="<?php echo e(\App\ControlAccount::CUSTOMER); ?>">

                                                </form> -->
                                                
                                            </td>
                                            
                                        </tr>

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

                                    </tbody>
                                </table>
                                
                            </div>
                                    <div class="clearfix"></div>
                                </div>



                            </div>
                        </div>


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

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

<?php $__env->startSection('js'); ?>
<script>
    $(function() {
        $('#myTable').DataTable({
            'pageLength':25,
            'paging':true,
            'searching':true,
            'info':true,
            'ordering':false
        });

        $('#myTable1').DataTable({
            'pageLength':25,
            'paging':true,
            'searching':true,
            'info':true,
            'ordering':false
        });
     
    });
        
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\akram-city.projecterp.net\resources\views/general-entry/fixed-asset.blade.php ENDPATH**/ ?>