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/teamdemo.sports-crowd.com/resources/views/mailbox/mailboxes.blade.php
@extends('modules.head') @section('contenido')

<!-- LIST lines-->
<div class="box">
    <div class="box-header">
        <h3 class="box-title">{{ Lang::get('messages.mailbox.list.title')}} </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.mailbox.list.date')}}</th>
                    <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">{{ Lang::get('messages.mailbox.list.requestType')}}</th>
                    <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">{{ Lang::get('messages.mailbox.list.businessUnit')}}</th>
                    <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">{{ Lang::get('messages.mailbox.list.name')}}</th>
                    <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">{{ Lang::get('messages.mailbox.list.document')}}</th>
                    <th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">{{ Lang::get('messages.mailbox.list.email')}}</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.mailbox.list.title')}}</th>
                </tr>
            </thead>
        </table>
    </div>
    <!-- /.box-body -->
</div>

<!-- /.MODAL VER INFO mailbox -->
<div class="modal fade in" id="modal-info-mailbox" style="display: none; padding-right: 17px;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">{{ Lang::get('messages.mailbox.modal.title')}}</h4>
            </div>

            <div class="modal-body">
                <div class="form-group">
                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.date')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="dateI"></p>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.requestType')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="requestTypeI"></p>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.businessUnit')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="businessUnitI"></p>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;" style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.name')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="nameI"></p>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.document')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="documentI"></p>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.message')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="messageI"></p>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-3">
                            <label style="font-weight: 700;">{{ Lang::get('messages.mailbox.modal.email')}}</label>
                        </div>
                        <div class="col-xs-6">
                            <p id="mailI"></p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{{ Lang::get('messages.mailbox.modal.cancel')}}</button>
                <button type="button" data-dismiss="modal" class="btn btnBox">{{ Lang::get('messages.mailbox.modal.ok')}}</button>
            </div>
        </div>
    </div>
</div>

<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/mailboxes.js') . '?v=' . time() }}"></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,
            'info': true,
            'autoWidth': true,
            "order": [
                [0, "desc"]
            ],
            responsive: true,
            processing: true,
            serverSide: true,
            language: {
                url: window.DATATABLES_LANGUAGE_URL,
            },
            ajax: "{{ route('mailbox.table') }}",
            columns: [{
                    data: 'created_at',
                    name: 'created_at'
                },
                {
                    data: 'request_type',
                    name: 'request_type',
                    render: function(data, type, row) {
                        if (data == null) {
                            return "";
                        }
                        return Lang.get("messages.mailbox.request_types." + data);
                    }
                },
                {
                    data: 'business_unit_name',
                    name: 'business_unit.name',
                },
                {
                    data: 'name',
                    name: 'users.first_name'
                },
                {
                    data: 'document',
                    name: 'users.document'
                },
                {
                    data: 'email',
                    name: 'users.email'
                },
                {
                    data: 'actions',
                    name: 'actions'
                },
            ]
        });

        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