Bootstrap datepicker doesn't get the value

Bootstrap datepicker doesn't get the value

Hello! I am using bootstrap datepicker , but the problem is that the value is empty.
I have this function:

  1.      public static function date_bootstrap($name, $id, $value = null) {
  2.             $input = '<div class="col-lg-3">' ;
  3.                     $input .= '<div class="input-group input-append date" name = "'.$name.'" id="' . $id . '" data-date="12/12/2012" data-date-format="dd-mm-yyyy">' ;
  4.                     $input .= '<input class="form-control" type="text" value="' . $value . '" readonly="">' ;
  5.                     $input .= '<span class="input-group-addon add-on"><i class="fa fa-calendar"></i></span> ' ;
  6.                     $input .= '</div></div>';
  7.             return $input;
  8.         }
And in view
  
  1.     {{Helpers\Helper::date_bootstrap('maintenance_date','dp3',Input::old('maintenance_date'))}}
js
  1.  $(function() {
  2.         $("#dp3").datepicker();
  3.     });
The problem is that even after selecting the date, value is empty. What is wrong?