<?php echo $__env->make('dashboard.include.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

  
  <div class="content-wrapper">
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Sales Summary</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="/home">Home</a></li>
              <li class="breadcrumb-item active">Sales Summary</li>
            </ol>
          </div>
        </div>
      </div>
    </div>
   
    <section class="content">
      <div class="container-fluid">

      <div class="card">
        <div class="card-body">
        <form class="form-horizontal" method="POST" action="/salesummaryfilter">
          <?php echo e(csrf_field()); ?>

          <div class="row">
              <div class="col-md-3">
                <div class="form-group">
                <label>Date Range</label>
                  <div class="input-group">
                      <div class="input-group-prepend">
                      <span class="input-group-text">
                          <i class="far fa-calendar-alt"></i>
                      </span>
                      </div>
                      <input type="text" class="form-control float-right" id="reservation" value="" name="daterange">
                  </div>
                  </div>
              </div>
              <div class="col-md-1" style="padding-top:30px;">
                <button type="submit" class="btn btn-primary btn-block">Filter</button>
            </div>


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


            <div class="card">
        <div class="card-body">
          <div class="row">
            <div class="col-md-3">
                <div class="callout callout-info">
                  <h5>0</h5>
                  <p>Out Received Money Count</p>
                </div>
            </div>
            <div class="col-md-3">
                <div class="callout callout-danger">
                  <h5>0</h5>
                  <p>Out Received Money</p>
                </div>
            </div>
            <div class="col-md-3">
                <div class="callout callout-warning">
                  <h5>0</h5>
                  <p>Colombo Received Money Count</p>
                </div>
            </div>
            <div class="col-md-3">
                <div class="callout callout-success">
                  <h5>0</h5>
                  <p>Colombo Received Money</p>
                </div>
            </div>
          </div>
          <br><hr><br>
          <div class="row">
            <div class="col-md-12">
            <h5>Riders Received Money</h5><br>
            <table id="example12" data-page-length='50' class="table table-bordered" style="width:100%; font-size: 13px;">
            <thead>
                        <tr>
                            <th>Rider Name</th>
                            <th>Number of Line</th>
                            <th>Total Collected COD</th>
                            <th>Total Delivery Charge</th>
                            <th>Total Net COD</th>
                        </tr>
                    </thead>
                    <tbody>

                        <tr>
                            <th>Total</th>
                            <th>0</th>
                            <th>0</th>
                            <th>0</th>
                            <th>0</th>
                        </tr>
                    </tbody>
                </table>
                </div>
          </div>
          <br><hr><br>
          
          <div class="row">
            <div class="col-md-12">
            <h5>Courier Company Received Money</h5><br>
            <table id="example13" data-page-length='50' class="table table-bordered" style="width:100%; font-size: 13px;">
            <thead>
                        <tr>
                            <th>Delivery Company</th>
                            <th>Toatal COD Amount</th>
                            <th>Total Delivery Charge</th>
                            <th>Total Payable Amount</th>
                        </tr>
                    </thead>
                    <tbody>

                        <tr>
                            <th>Total</th>
                            <th>0</th>
                            <th>0</th>
                            <th>0</th>
                        </tr>
                    </tbody>
                </table>
                </div>
          </div>

          <br><hr><br>
          <div class="row">
            <div class="col-md-12">
            <h5>Wholesale Received Money</h5><br>
            <table id="example14" data-page-length='50' class="table table-bordered" style="width:100%; font-size: 13px;">
            <thead>
                        <tr>
                            <th>ID</th>
                            <th>Wholesaler Name</th>
                            <th>Total Amount</th>
                        </tr>
                    </thead>
                    <tbody>

                        <tr>
                            <th></th>
                            <th>Total</th>
                            <th>0</th>
                        </tr>
                    </tbody>
                </table>
                </div>
          </div>
          <br><hr><br>
          <div class="row">
            <div class="col-md-12">
            <h5>Supplier Payments</h5><br>
            <table id="example15" data-page-length='50' class="table table-bordered" style="width:100%; font-size: 13px;">
            <thead>
                        <tr>
                            <th>ID</th>
                            <th>Supplier Name</th>
                            <th>Invoice No</th>
                            <th>Total Amount</th>
                        </tr>
                    </thead>
                    <tbody>

                        <tr>
                            <th></th>
                            <th></th>
                            <th>Total</th>
                            <th>0</th>
                        </tr>
                    </tbody>
                </table>
                </div>
          </div>

                    <!-- <br><hr><br>
          <div class="row">
            <div class="col-md-12">
            <h5>Dedicated Money</h5><br>
            <table id="example16" data-page-length='50' class="table table-bordered" style="width:100%; font-size: 13px;">
            <thead>
                        <tr>
                            <th>ID</th>
                            <th>Bank</th>
                            <th>Date</th>
                            <th>Description</th>
                            <th>Debit</th>
                        </tr>
                    </thead>
                    <tbody>

                        <tr>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th>Total</th>
                            <th>0</th>
                        </tr>
                    </tbody>
                </table>
                </div>
          </div> -->

          <br><hr><br>
          <div class="row">
            <div class="col-md-4">
                <div class="callout callout-info">
                  <h5>0</h5>
                  <p>Total Recived Money</p>
                </div>
            </div>
            <div class="col-md-4">
                <div class="callout callout-danger">
                  <h5>0</h5>
                  <p>Dedicated Money</p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="callout callout-success">
                  <h5>0</h5>
                  <p>Profit</p>
                </div>
            </div>
          </div>



          </div>
        </div>


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



  <?php echo $__env->make('dashboard.include.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>;

<script>
$(document).ready(function() {
    $('#example12').DataTable({
        "responsive": true, "lengthChange": true, "autoWidth": false,"order": [[ 0, "asc" ]],
      // "buttons": ["copy", "csv", "excel", "pdf", "print"]
      "buttons": [ {extend: 'copy',footer: true,exportOptions: {columns: [0,1,2]}},   
      {extend: 'csv',footer: true,exportOptions: {columns: [0,1,2]}},
      {extend: 'excel',footer: true,exportOptions: {columns: [0,1,2]}},
      {extend: 'pdf',footer: true,exportOptions: {columns: [0,1,2]}},
      {extend: 'print',footer: true,exportOptions: {columns: [0,1,2]}},      
    ]  
    }).buttons().container().appendTo('#example12_wrapper .col-md-6:eq(0)');
} );


    $('#reservation').daterangepicker({
        locale: {
            format: 'YYYY/MM/DD'
        }
    });

    $('.select2').select2()
</script>