$(document).ready(function() {
         $('.main-spinner').show();
         $('#datatable_item').DataTable({
             ordering: false,
             serverSide: true,
             "lengthMenu": [
                 [20, 30, 50, 100, -1],
                 [20, 30, 50, 100, "All"]
             ],
             ajax: "/realty/datatable_get_funds_request_add",
             columns: [

                    {data: 'DT_RowIndex'},
                    {data: 'request_date'}, 
                    {data: 'operation_type'}, 
                    {data: 'account_number'}, 
                    {data: 'reference'}, 
                    {data: 'amount',"className": 'text-right'}, 
                    {data: 'status'},

             ],

             "initComplete": function(settings, json) {
                 $('.main-spinner').hide();
             },
         });
         $.fn.dataTable.ext.errMode = 'throw';
     });