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

.help-block{
  color:red;
}
.is-invalid{border:1px solid red !important;}
      </style>          
<div class="col-sm-12">
                         <a href="<?php echo e(url('addamount')); ?>" >Add Amount+ </a>

 <?php $__currentLoopData = ["success","error"]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(Session::has($status)): ?>
<div class="alert alert-<?php echo e($status); ?> alert-dismissible">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <strong><?php echo e($status); ?>!</strong> <?php echo e(Session::get($status)); ?> action.
</div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  <?php 
//$amountlist=App\Amount::select("*")->get();
//dd($catelist);

$amountlist=DB::table('amount as a')->leftJoin("users as u","a.person","=","u.id")->select('a.*','u.name','u.role','u.opening_balance')->get();

//


//dd($amountlist);

  ?>                
 <div class="card mb-4">
<div class="card-header">
<i class="fas fa-table mr-1"></i>
     Amount List
</div>  
 <div class="card-body">  
 <div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0" >
<thead>
<tr>
  
  <th>Sr No.</th><th>Project</th> <th>Person</th> <th>Amount</th> <th>Total Balance</th> <th>Created Date</th>  
</tr>
</thead>
<tbody>

<?php $i=0; ?>
<?php $__currentLoopData = $amountlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $amount): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

<tr>
  <td><?php echo e(++$i); ?></td>
  <td><?php echo e(App\Project::getprojectnm($amount->project_id)); ?></td>
  <td><?php echo e($amount->name." ( ".$amount->role." ) "); ?></td>
    <td><?php echo e($amount->amount); ?></td>
    <td><?php echo e($amount->opening_balance); ?></td>
  <td><?php echo e(date('d/m/Y',strtotime($amount->created_at))); ?></td>
  <!--<td><a href="#" class="btn btn-success btn-sm">Edit </a>  <a href="#" class="btn btn-danger btn-sm">Delete </a></td>-->

</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tbody>
</table>

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


     <?php $__env->stopSection(); ?>
             
<?php echo $__env->make('layout/master2', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/utjn1ubt98bo/public_html/sangyatraders.com/admin/resources/views/amountlist.blade.php ENDPATH**/ ?>