ispt4.0_laravel/resources/views/recebeIdiota.blade.php
2023-07-04 19:23:28 +01:00

78 lines
2.2 KiB
PHP

@extends('testIdiota')
@section('idiota')
<h2>Teste </h2>
<table id="example" class="table table-striped table-bordered example" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>61</td>
<td>2011-04-25</td>
<td>$320,800</td>
</tr>
<tr>
<td>Garrett Winters</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>63</td>
<td>2011-07-25</td>
<td>$170,750</td>
</tr>
</tbody>
</table>
@endsection
@section('idiotaScripts')
{{-- <script>
$(function() {
$("#example").DataTable({
"responsive": true,
"lengthChange": false,
"autoWidth": false,
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#example_wrapper .col-md-6:eq(0)');
});
</script> --}}
<script>
$(document).ready(function() {
var table = $('.example').DataTable({
processing: true,
serverSide: true,
ajax: "{{ route('testDataTables') }}",
columns: [
{
data: 'id', name: 'id'
},
{
data: 'name',
name: 'name'
},
{
data: 'email',
name: 'email'
},
{
data: 'action',
name: 'action',
orderable: false,
searchable: false
},
]
});
});
</script>
@endsection