@extends('layouts.master')
@section('title','Transaction Statement')
@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>All Transaction Statement</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">All Transaction Statement</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">
                  @if (auth()->user()->role == 'admin' || auth()->user()->role == 'users')
                  <div class="col-md-4">
                    <div class="form-group mb-1">
                                <label>Company Name</label>
                                <select class="form-control select2bs4" style="width: 100%;" id="company_id">
                                  <option value="all">All</option>
                                  @foreach($company_listing as $company_list)
                                  <option value="{{$company_list->id}}">{{ $company_list->company_name }}</option>
                                  @endforeach
                                </select>
                              </div>
                    </div>
                  @endif
                  <div class="col-md-4">
                    <div class="form-group mb-1">
                                <label>Tax</label>
                                <select class="form-control select2bs4" style="width: 100%;" id="tax_id" required="">
                                  <option value="all">All</option>
                                  <option value="tax"> Tax</option>
                                  <option value="notax">No Tax</option>
                               
                                </select>
                              </div>
                    </div>
                <div class="col-md-4">
                  <div class="form-group mb-1">
                    <label for="exampleInputEmail1">Date From</label>
                    <input type="date" class="form-control" value="@php echo date('Y-m-d'); @endphp" id="datefrom"  >
                  </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" value="@php echo date('Y-m-d'); @endphp" id="dateto"  >
                  </div>
                </div>
              </div>
              <div class="card-footer">
                <button class="btn btn-primary" onclick="report();">Search</button>
              </div>
      
          </div>
       
        </div>
        <!-- /.container-fluid -->
  
      </section>
      <!-- /.content -->
    </div>



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