@foreach($deductionrules as $deductionrule)
<tr>
<td><b>{{ $deductionrule->leavePenalty }}</b></td>
<td><b>{{ $deductionrule->absentPenalty }}</b></td><td><b>{{ $deductionrule->latePenalty }} | {{ $deductionrule->deductionId }}</b></td>
<td align="center">
<button class="btn btn-danger delete-deductionrules" data-iddeductionrules="{{ $deductionrule->deductionId }}" ><i class="fa fa-trash"></i></button>
<button class="btn btn-success edit-deductionrules" data-rolesid="{{ $deductionrule->deductionId }}" data-leavePenalty="{{ $deductionrule->leavePenalty }}" data-absentPenalty="{{ $deductionrule->absentPenalty }}" data-latePenalty="{{ $deductionrule->latePenalty }}" ><i class="fa fa-edit m-right-xs"></i></button>
</td>
</tr>
@endforeach
вот мой jquery
script type = "text / javascript" src = "{{asset ('js / jquery.min.js')}}">
<script type="text/javascript">
// edit deduction rules modal
$(document).on('click', '.edit-deductionrules', function() {
$('#id_edit').val($(this).data('rolesid'));
$('#absentPenalty').val($(this).data('absentPenalty'));
$('#latePenalty').val($(this).data('latePenalty'));
$('#editrule').modal('show');
});
</script>
отсюда доступен только идентификатор. В чем проблема?