<?php echo View::make('/../include/header'); ?>

<header>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>

<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"></script>

</header>
<body>

<section id="main-content">
    <section id="container">
        <section class="wrapper">
            <div class="row mt">
                <div class="col-lg-12">
                <h4>Dashboard <i class="fa fa-angle-right"></i> Remaining Stock</h4>
                </div>
            </div>

            <table id="example" class="table table-striped table-bordered" style="width:100%">
        <thead>
            <tr>
                <th>Id</th>
                <th>Product Name</th>
                <th>Code</th>
                <th>Sell Price</th>
                <th>Cost</th>
                <th>Stock</th>
            </tr>
        </thead>
        <tbody>
        @foreach($item as $data)
            <tr>
                <td>{{$data->id}}</td>
                <td>{{$data->name}}</td>
                <td>{{$data->item_code}}</td>
                <td>{{$data->sell_price}}</td>
                <td>{{$data->cost_price}}</td>                
                <td>{{$data->stock}}</td>                
            </tr>
        @endforeach 
        </tbody>
        <tfoot>
            <tr>
                <th>Id</th>
                <th>Product Name</th>
                <th>Code</th>
                <th>Sell Price</th>
                <th>Cost</th>
                <th>Stock</th>
            </tr>
        </tfoot>
    </table>

        </section>
    </section> 
</section>
   

 

<footer class="site-footer">
      <div class="text-center">
        <p>
          &copy; Copyrights <strong>Dashio</strong>. All Rights Reserved
        </p>
        <div class="credits">
          <!--
            You are NOT allowed to delete the credit link to TemplateMag with free version.
            You can delete the credit link only if you bought the pro version.
            Buy the pro version with working PHP/AJAX contact form: https://templatemag.com/dashio-bootstrap-admin-template/
            Licensing information: https://templatemag.com/license/
          -->
          Created with Dashio template by <a href="https://templatemag.com/">TemplateMag</a>
        </div>
        <a href="index.html#" class="go-top">
          <i class="fa fa-angle-up"></i>
          </a>
      </div>
    </footer>

<style>
    .site-footer {

    /* position: fixed; */
   left: 0;
   z-index: -1;
   bottom: 0;
   width: 100%;
}
</style>
    <!--footer end-->
  </section>
<script>
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>


  <script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
  <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
  <script src="{{ asset('dash/lib/bootstrap/js/bootstrap.min.js') }}"></script>
  <script class="include" type="text/javascript" src="{{ asset('dash/lib/jquery.dcjqaccordion.2.7.js') }}"></script>
  <script src="{{ asset('dash/lib/jquery.scrollTo.min.js') }}"></script>
  <script src="{{ asset('dash/lib/jquery.nicescroll.js') }}" type="text/javascript"></script>
  <script src="{{ asset('dash/lib/jquery.sparkline.js') }}"></script>

<!--sweet alert-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.29.2/sweetalert2.all.js"></script>

  <!--common script for all pages-->
  <script src="{{ asset('dash/lib/common-scripts.js') }}"></script>
  <script type="text/javascript" src="{{ asset('dash/lib/gritter/js/jquery.gritter.js') }}"></script>
  <script type="{{ asset('dash/text/javascript" src="lib/gritter-conf.js') }}"></script>
  <!--script for this page-->
  <script src="{{ asset('dash/lib/sparkline-chart.js') }}"></script>
  <script src="{{ asset('dash/lib/zabuto_calendar.js') }}"></script>

</body>

</html>
