@extends('layouts.master')
@section('title','Ledger')
@section('content')

 <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <h1>Ledger</h1>
            </div>
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item active">Ledger </li>
              </ol>
            </div>
          </div>
        </div><!-- /.container-fluid -->
      </section>

      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
        <div class="card card-primary">
            @if(session()->has('success'))
            <div class="alert alert-success">
                {{ session()->get('success') }}
            </div>
        @endif

              <div class="card-body row pb-0">


                <div class="col-md-4">
                  <div class="form-group mb-1">
                    <label for="exampleInputEmail1">Date From</label>
                    <input type="date" class="form-control" id="datefrom" value="@php echo date('Y-m-d'); @endphp" required="">
                  </div>
                </div>
                <div class="col-md-4">
                  <div class="form-group mb-1">
                    <label for="exampleInputEmail1">Date To</label>
                    <input type="date" class="form-control" id="dateto" value="@php echo date('Y-m-d'); @endphp" required="">
                  </div>
                </div>
              </div>
              <div class="card-footer">
                <button class="btn btn-primary" onclick="ledger_report();">Print </button>
                <button class="btn btn-info" onclick="ledger_report_excel();">Excel </button>
              </div>

          </div>

        </div>
        <!-- /.container-fluid -->
      </section>
      <!-- /.content -->
    </div>



@endsection
@section('script')
<script src="{{ asset('js/table.js') }}"></script>
@endsection
