MOON
Server: Apache
System: Linux server10.mejorconweb.com 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: ser65kty (1085)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/ser65kty/cardedeu.serversmw.com/resources/views/elmeucompte.blade.php
@extends('layouts.app')
@section('metadata')
<title>El meu compte - Ajuntament de Cardedeu</title>
@endsection
@include("cal-code-elmeucompte")
@section('css')
<link rel="stylesheet" href="{{ asset('plugins/chosen/chosen.css') }}">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
<script src="//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js" ></script>
@endsection

@section('content')

@if($user->type == 'usuari')
    @include('compteusuari')
@elseif($user->type == 'empresa')
    @include('compteempresa')
@elseif($user->type == 'admin')
    @include('compteusuari')
    @include('compteempresa')
@endif

@endsection

@section('bottomscripts2')

<script>
$(document).ready(function() {
    //$.fn.dataTable.ext.search.pop(); -> posible reset

    var oTable = $('#tablaofertas').DataTable( {
        "order": [[ 0, "desc" ]],
        responsive : true,
      "language": {
                search: "",
                emptyTable: "No hi ha ofertes",
                zeroRecords: "No hi ha ofertes per aquesta cerca",
                lengthMenu: "Mostrar _MENU_ ofertes",
                info: "Mostrant _START_ a _END_ de _TOTAL_ ofertes",
                infoEmpty: "No hi ha ofertes",
                infoFiltered:   "(filtrat de _MAX_ ofertes en total)",
                searchPlaceholder: "Buscar...",
                selectPlaceholder: "Buscar...",
                paginate: {
            first:      "Primer",
            previous:   "Anterior",
            next:       "Següent",
            last:       "Últim"
        },
            },
       "dom": '<"datatablesofertas"f><l<t>ip>',
      "columnDefs": [ {
            "searchable": false,
            "orderable": false,
            "targets": [],
        } ],

        initComplete: function () {
    
 
      // Remove accented character from search input as well
      $('#tablaofertas_filter input').keyup( function () {
        oTable
          .search(
            jQuery.fn.DataTable.ext.type.search.string( this.value )
          )
          .draw()
      } );
      //end remove special characters

            this.api().columns('.select-filter').every( function () {
                var column = this;
                var th = $("#tablaofertas").find("th").eq(column.index());
                var select = $('<select class="form-control"><option value="">' + 'Filtrar ' + th.text() + '</option></select>')
                    //.appendTo( $(column.footer()).empty() )
                    .appendTo( $('.datatablesofertas'))
                    .on( 'change', function () {
                        var val = $.fn.dataTable.util.escapeRegex(
                            $(this).val()
                        );
            
                        column
                            .search( val ? '^'+val+'$' : '', true, false )
                            .draw();
                    } );
 
                column.data().unique().sort().each( function ( d, j ) {
                    select.append( '<option value="'+d+'">'+d+'</option>' )
                } );
            } );
        }
    }  );
} );

</script>

<script src="{{ asset('plugins/chosen/chosen.jquery.js') }}"></script>
<script>
  $(".chosen-select").chosen({max_selected_options: 5});
</script>
<script>
  $(".chosen-select6").chosen({max_selected_options: 6});
</script>
@endsection