63 lines
1.7 KiB
PHP
63 lines
1.7 KiB
PHP
@extends('Templates/templateAdmin')
|
|
|
|
@section('Main-content')
|
|
<h2>test</h2>
|
|
|
|
<input type="hidden" value="98" id="receiveNumberProject">
|
|
|
|
|
|
<table id="showProjectEquipment" class="display">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Tag</th>
|
|
<th>Fabrica</th>
|
|
<th>Tipo</th>
|
|
<th>acao</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
var numberProject = $('#receiveNumberProject').val();
|
|
|
|
$('#showProjectEquipment').DataTable({
|
|
processing: true,
|
|
serverSide: true,
|
|
ajax: {
|
|
url: '{{ route('getDataEquipment') }}',
|
|
type: 'GET',
|
|
data: {
|
|
'numberProject': numberProject
|
|
}
|
|
},
|
|
columns: [{
|
|
data: 'equipment_id',
|
|
name: 'equipment_id'
|
|
},
|
|
{
|
|
data: 'equipment_tag',
|
|
name: 'equipment_tag'
|
|
},
|
|
{
|
|
data: 'unit_id',
|
|
name: 'unit_id'
|
|
},
|
|
{
|
|
data: 'equipment_type_id',
|
|
name: 'equipment_type_id'
|
|
},
|
|
{
|
|
data: 'action',
|
|
name: 'action',
|
|
orderable: false,
|
|
searchable: false
|
|
},
|
|
],
|
|
});
|
|
});
|
|
</script>
|
|
|
|
@endsection
|