File: /var/www/vhost/disk-apps/comfama.sports-crowd.com/resources/views/attributes/list.blade.php
@extends('modules.head') @section('contenido')
<div class="box-header">
<a class="btn btn-app btnReportProducts" data-toggle="modal" data-target="#modal_import">
<i class="fa fa-cloud-upload"></i> {{ Lang::get('messages.screen_products_tag41')}}
</a>
<a class="btn btn-app btnReportProducts" href="{{url('/attributes/export')}}">
<i class="fa fa-cloud-download"></i> {{ Lang::get('messages.screen_products_tag42')}}
</a>
<a class="auxiliar-black" href="{{route('attributes.create')}}">
<button class="btn btnAdd pull-right">
<i style="margin-right:5px;" class="fa fa-plus"></i>{{ Lang::get('messages.attributes.title_1')}}
</button>
</a>
</div>
<!-- LIST lines-->
<div class="box">
<div class="box-header">
<h3 class="box-title">{{ Lang::get('messages.attributes.title_2')}} </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">
Id</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ Lang::get('messages.attributes.title_3')}}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ Lang::get('messages.attributes.title_4')}}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ Lang::get('messages.attributes.title_5')}}
</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">
{{ Lang::get('messages.attributes.title_6')}}
</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.attributes.title_7')}}
</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>
<div class="modal fade" id="modal_import">
<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.attributes.title_9')}}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label for="importAttributes">{{ Lang::get('messages.screen_products_tag44')}} </label>
<input type="file" name="importAttributes" id="importAttributes" required>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{{ Lang::get('messages.screen_products_tag38')}}</button>
<button type="button" id="button-import" onclick="importFile()" class="btn btn-primary">{{ Lang::get('messages.screen_products_tag41')}}</button>
<button type="button" class="btn btn-primary displayNone" id="spinner-button">
<i class="fa fa-spinner fa-spin"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/attributes.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,
'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('attributes.table') }}",
columns: [{
data: 'id',
name: 'id'
},
{
data: 'name',
name: 'name'
},
{
data: 'display_name',
name: 'display_name'
},
{
data: 'is_more_one',
name: 'is_more_one'
},
{
data: 'required',
name: 'required'
},
{
data: 'active',
name: 'active'
},
{
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