Why my export buttons like PDF, EXCEL CSV not showing or displaying on my page?
here is what my table looks like
here are my js links
<table class="table" id="table_id">
<thead>
<tr>
<th>EMPLOYEE NO.</th>
<th>NAME</th>
<th>DATE</th>
<th>TIME IN</th>
<th>TIME OUT</th>
<th>TOTAL HOURS</th>
<th>STATUS</th>
</tr>
</thead>
<tbody>
@foreach ($employeeSched as $setTime)
<tr>
<td><b>{{ $setTime->employee_no }}</b></td>
<td><b>{{ $setTime->last_name }}, {{ $setTime->first_name }}</b></td>
<td><b>{{Form::label('date_today', $setTime->date_today)}}</b></td>
<td><input type="time" name="schedules[{{ $setTime->id }}][timeIn]" class="form-control col-md-11" value='{{ $setTime->time_in }}'></td>
<td><input type="time" name="schedules[{{ $setTime->id }}][timeOut]" class="form-control col-md-11" value='{{ $setTime->time_out }}'></td>
</td>
</tr>
@endforeach
</tbody>
</table>
{{ $employeeSched->links() }}
and my Script
@section('script')
<script type="text/javascript">
$(document).ready(function() {
$('#table_id').DataTable({
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
});
</script>
and in my app.blade.php here are my links
links for scripts
{!! Html::script('js/datatable/dataTables.buttons.min.js') !!}
{!! Html::script('js/datatable/buttons.flash.min.js') !!}
{!! Html::script('js/datatable/jszip.min.js') !!}
{!! Html::script('js/datatable/pdfmake.min.js') !!}
{!! Html::script('js/datatable/vfs_fonts.js') !!}
{!! Html::script('js/datatable/buttons.html5.min.js') !!}
{!! Html::script('js/datatable/buttons.print.min.js') !!}
links for css
{!! Html::style('css/buttons.dataTables.min.css') !!}
{!! Html::style('css/jquery.dataTables.min.css') !!}