@extends('company.layouts.main') @section('content')
Back

View Survey questions

@if(Session::has('success'))
{{ Session::get('success') }}
@endif
ID Index Question Question Type action
@endsection @section('script') $(function () { var table = $('#datatable').DataTable({ processing: true, serverSide: true, responsive:true, order:['0','asc'], ajax: "{{ route('view.surveyQuestion',$virtualExpId) }}", "columnDefs": [ { "targets": [ 0 ], "visible": false, "searchable": true }, ], "columns": [ { data: 'id' }, { // Index column data: null, render: function (data, type, row, meta) { // Return row index starting from 0 return meta.row + 1 } }, { data: 'question_text' }, { data: 'question_type' }, {data: 'action', name: 'action', orderable: false, searchable: false}, ], createdRow: function (row, data, index) { // Set index column data attribute $('td:eq(1)', row).attr('data-index', index); } }); setTimeout(function() { $('#successMessage').fadeOut('fast'); }, 1000); }); @endsection