@extends('layouts.app')
@section('title','Day End Report')
@section('content')

<section class="content-header">
  <div class="container-fluid">
      <div class="row mb-2">
          <div class="col-sm-5">
              <h3>Best Selling Services</h3>
          </div>
          <div class="col-sm-6">
            <form action="{{route('reports.bestselling')}}" method="GET">

            <div class="row">
                <div class="col-md-5">
                  <input type="date" name="start_date" value="{{request('start_date')}}" class="form-control"/>
                </div>
                <div class="col-md-5">
                  <input type="date" name="end_date" value="{{request('end_date')}}" class="form-control"/>
                </div>
                <div class="col-md-2">
                  <button type="submit" class="btn btn-primary" value="Submit">Submit</button>

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

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

<div class="card">
<div class="card-header">
  <div class="d-print-none" style="float: right;">
{{--     <a href="javascript:void(0);" class="btn btn-default print-card"><i class="fa fa-print"></i> Print</a>
 --}}  </div>
</div>
  <div class="card-body print-content">
    <table class="table table-striped dataTable">
      <tr>
        <th>#</th>
        <th>Items</th>
        <th>Quantity</th>
        <th>Amount</th>
      </tr>
      @foreach($items as $row)
      <tr>
        <td>{{$row->item_id}}</td>
        <td>{{$row->item_name}}</td>
        <td>{{$row->quantity}}</td>
        <td>{{$row->sales}}</td>


      </tr>
      @endforeach



    </table>

  </div>

</div>

@endsection
