<?php $__env->startSection('content'); ?>
<title>Data Barang Rusak Ruangan</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>  
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
</div>
 <div class="row"> 
  <div class="col-xl-6 col-md-12 mb-4">
    <div class="card border-left-dark shadow h-100 py-2">
      <div class="card-body">
        <div class="row no-gutters align-items-center">
          <div class="col mr-2">
            <div class="text-xs font-weight-bold text-dark text-uppercase mb-1">Total jumlah barang Rusak di ruangan</div>
            <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo e($rusak_luar); ?></div>
          </div>
          <div class="col-auto">
            <i class="fas fa-calendar fa-2x text-gray-300"></i>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="col-xl-6 col-md-12 mb-4">
    <div class="card border-left-dark shadow h-100 py-2">
      <div class="card-body">
        <div class="row no-gutters align-items-center">
          <div class="col mr-2">
            <div class="text-xs font-weight-bold text-dark text-uppercase mb-1">total data</div>
            <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo e($hitung); ?></div>
          </div>
          <div class="col-auto">
            <i class="fas fa-calendar fa-2x text-gray-300"></i>
          </div>
        </div>
      </div>
    </div>
  </div>
 </div>
 <div class="card shadow mb-4">
<div class="card-header py-3">
  <h6 class="m-0 font-weight-bold text-dark">Data Barang Rusak Ruangan</h6>
</div>
<div class="card-body">
  <div class="table-responsive">
    
       
      
      <table id="example" class="table table-bordered js-basic-example dataTable" cellspacing="0">
          <thead>
            <tr>
                  <th>Penginput</th>
                  <th>Barang</th>
                  <th>Jumlah Rusak</th>
                  <th>Tanggal Masuk</th>
                  <th>Status</th>
                  <th>Opsi</th>
            </tr>
          </thead>
        </table>
  </div>
</div>


   <script>
 $(document).ready( function () {
    $('#example').DataTable({
           processing: true,
           serverSide: true,
           ajax: "/rusak_luar_json",
           columns: [
                    { data: 'nama', name: 'nama' },
                    { data: 'nama_barang', name: 'nama_barang' },
                    { data: 'jumlah_rusak_luar', name: 'jumlah_rusak_luar' },
                    { data: 'tanggal_rusak_luar', name: 'tanggal_rusak_luar' },
                    { data: 'status_rusak', name: 'status_rusak' },
                    {data: 'action', name: 'action', orderable: false},
                 ]
        });
     });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH R:\software\xampp\htdocs\laravel_sarpras\resources\views/rusak_luar/view.blade.php ENDPATH**/ ?>