<div class="row">
  {{ Form::open(['method' => 'get']) }}
  <div class="col-md-2">
    <div class="form-group">
      <?php
      $value = Request::get('invoice_id') ? Request::get('invoice_id') : null;

       ?>
      {{ Form::text('invoice_id', $value, [
        'class' => 'form-control',
        'placeholder' =>  trans('invoices.id')
      ]) }}
    </div>
  </div>
  <div class="col-md-2">
    <div class="form-group">
      <?php
      $value = Request::get('name') ? Request::get('name') : null;

       ?>
      {{ Form::text('name', $value, [
        'class' => 'form-control',
        'placeholder' =>  trans('customers.menu')
      ]) }}
    </div>
  </div>
    <div class="col-md-2">
      <div class="form-group">
        <div class="input-group date" data-provide="datepicker">
          <?php
          $value = Request::get('start_date') ? Request::get('start_date') : null;

           ?>
          {{ Form::text('start_date', $value, [
            'class' => "form-control",
            'placeholder' => Trans('invoices.start_date'),
            'autocomplete' => "off"
          ]) }}
          <div class="input-group-addon">
              <i class="fa fa-calendar"></i>
          </div>
        </div>
      </div>
    </div>
    <div class="col-md-2">
      <div class="form-group">
        <div class="input-group date" data-provide="datepicker">
          <?php
          $value = Request::get('end_date') ? Request::get('end_date') : null;

           ?>
          {{ Form::text('end_date', $value, [
            'class' => "form-control",
            'placeholder' => Trans('invoices.end_date'),
            'autocomplete' => "off"
          ]) }}
          <div class="input-group-addon">
              <i class="fa fa-calendar"></i>
          </div>
        </div>
      </div>
    </div>
    <div class="col-md-2">
      <?php
      $selected = Input::get('type') ? Input::get('type') : "all";

       ?>
      {{ Form::select('type', [
        'all' =>  trans('dashboard.others.show_all'),
        'deposit' =>  trans('invoices.deposit'),
      ], $selected, ['class' => "form-control select2"]) }}
    </div>
    <div class="col-md-2">
      <button type="submit" class="btn btn-info pull-right" name="search" value="true"><i class="fa fa-search"></i> {{ Trans('invoices.search') }}</button>
    </div>
  {{ Form::close() }}
</div>
