HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/agile-selling-wpb/resources/views/lines/lineBusiness.blade.php
@extends('modules.head') @section('contenido')

<div class="box">
    <div class="box-header with-border">
    <h3 class="box-title">{{ Lang::get('messages.screen_line_business_tag1')}}</h3>

        <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse">
                <i class="fa fa-minus"></i>
            </button>
        </div>
        <!-- /.box-tools -->
    </div>
    <!-- /.box-header -->
    <div class="box-body" >
        {{-- @include('flash::message') --}}
        <form role="form" id="createLine" data-toggle="validator">

            <div class="row">
                <div class="col-xs-3"></div>
                <div class="col-6 col-md-6">
                    <div class="form-group">
                        <label for="name">{{ Lang::get('messages.screen_line_business_tag2')}}</label>
                        <input type="text" class="form-control" maxlength="45" name="name" placeholder="" required>
                    </div>
                </div>
                <div class="col-xs-3"></div>
            </div>
            <button onClick="createLine()"  class="btn btnBox pull-right">{{ Lang::get('messages.screen_line_business_tag3')}}</button>
              {{ csrf_field() }}
        </form>
    </div>
    </div>
    <!-- /.box-body -->

<!-- LIST lines-->
<div class="box">
    <div class="box-header">
        <h3 class="box-title">{{ Lang::get('messages.screen_line_business_tag4')}} </h3>

       
    </div>

    <!-- /.box-header -->
    <div class="box-body table-responsive ">
            <table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                    <thead>
                        <tr role="row">
                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">{{ Lang::get('messages.screen_line_business_tag2')}}</th>
                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending">{{ Lang::get('messages.screen_line_business_tag5')}}</th>
                            <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending"></th>
        
        
                        </tr>
                    </thead>
                    
                  </table>
       
    </div>
    <!-- /.box-body -->
</div>



<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/line.js') }}"></script>
<script src="{{ asset('js/bootstrap/js/bootstrap.min.js') }}"></script>
<script type="text/javascript">
    $(document).ready(function () {
              
       

       _table = $('#example2').DataTable({
            'paging': true,
            'lengthChange': true,
            'searching': true,
            'ordering': false,
            'info': true,
            'autoWidth': true,
            responsive: true,
            processing: true,
            serverSide: true,
            "language": {
                url: 'https://cdn.datatables.net/plug-ins/1.10.19/i18n/Spanish.json'
            },

            ajax: '{{ route('line.table') }}',
            columns: [{
                    data: 'name',
                    name: 'name'
                },
                {
                    data: 'active',
                    name: 'active'
                },
                {
                    data: 'actions',
                    name: 'actions'
                },
               

            ]
        });

        setTimeout( function(){

            if (localStorage.getItem("setPageTable") == 'true') {
             
             var index = parseInt(localStorage.getItem("productsTableIndex"));
             _table.page(index).draw(false);

             localStorage.setItem("productsTableIndex", 0);
             localStorage.setItem("setPageTable", false);
         }
          
          $('#example2_filter > label > input').unbind();
          $('#example2_filter > label > input').bind('keyup', function (e) {
            
            if (e.keyCode == 13){
              _table.search(this.value).draw();
            }
          });
          
        },500);
  
  
    var info = '<i class="fa  fa-info-circle"  id="btn-info-busqueda"></i><div class="dropdown-menu" id="menuBusqueda" style="left: 50%; padding: 5px; background-color: #f9fb8f;"><p data-toggle="modal">Busqueda por Código, Nombre y Teléfono</p></div>';
  
        $('#example2_filter').append(info);
        $('#btn-info-busqueda').on('click', function () {
            $('#menuBusqueda').toggle();
         });
  
  
    });
  
  </script>
  @endsection