text: // JavaScript Document
  
  //Image Upload Script
  $(document).ready(function () {
      $(document).on('change', '.btn-file :file', function () {
          var input = $(this),
                  label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
          input.trigger('fileselect', [label]);
      });
  
      $('.btn-file :file').on('fileselect', function (event, label) {
  
          var input = $(this).parents('.input-group').find(':text'),
                  log = label;
  
          if (input.length) {
              input.val(log);
          } else {
              if (log)
                  alert(log);
          }
  
      });
      function readURL(input) {
          if (input.files && input.files[0]) {
              var reader = new FileReader();
  
              reader.onload = function (e) {
                  $('#img-upload').attr('src', e.target.result);
              }
  
              reader.readAsDataURL(input.files[0]);
          }
      }
  
      $("#imgInp").change(function () {
          readURL(this);
      });
  	
  });
  
  //Success and Error Message Timeout Code Start
  setTimeout(function() {
      $('.alertsuccess').slideUp(1000);
   },5000);
   
  setTimeout(function() {
      $('.alerterror').slideUp(1000);
   },10000);
   
  //Datepicker setting code start
   $(function(){
  	 $('#income_date').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  	
  	$('#datepickerForm').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  	
  	$('#datepickerTo').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  	
  	$('#datepicker_one').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  	
  	$('#datepicker_two').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  	
  	$('.datepicker_date').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  	
  	$('.datepicker_redate').datepicker({
  		autoclose: true,
  		format: 'yyyy-mm-dd',
  		todayHighlight: true
  	});
  });
  
  //Data Table code start
  $(document).ready(function(){
  	$('#inexsummary').DataTable({
  		"paging": true,
  		"lengthChange": false,
  		"searching": false,
  		"ordering": true,
  		"info": true,
  		"autoWidth": false,
  		"order": [[ 0, "desc" ]],
  	});
  
  	$('#seveendayreport').DataTable({
  		"paging": false,
  		"lengthChange": false,
  		"searching": false,
  		"ordering": true,
  		"info": false,
  		"autoWidth": false,
  		"order": [[ 0, "desc" ]],
  	});
  	
  	$('#allloanerinfo').DataTable({
  		"paging": true,
  		"lengthChange": true,
  		"searching": true,
  		"ordering": true,
  		"info": true,
  		"autoWidth": false
  	});
  
  	$('#alltableinfo').DataTable({
  		"paging": true,
  		"lengthChange": true,
  		"searching": true,
  		"ordering": true,
  		"info": true,
  		"autoWidth": false
  	});
  	
  	$('#loanerstatus').DataTable({
  		"paging": false,
  		"lengthChange": false,
  		"searching": false,
  		"ordering": true,
  		"info": false,
  		"autoWidth": false,
  		"order": [[ 0, "desc" ]],
  	});
  	
  	$('#allTableDesc').DataTable({
  		"paging": true,
  		"lengthChange": true,
  		"searching": true,
  		"ordering": true,
  		"order": [[ 0, "desc" ]],
  		"info": true,
  		"autoWidth": false
  	});
  });
  
  //Modal code start
  $(document).ready(function(){
  	$(document).on("click", "#softDelete", function () {
  		 var deleteID = $(this).data('id');
  		 $(".modal-body #modal_id").val( deleteID );
  	});
  });
  	 
  