Category : multiple-columns

i have a pivot table that i want to record some data along with user on form submit. but im getting an error illegal offset type. $user has a value. same value if i add manually it works. my controller public function store(User $user) { //dd(Request()->all()); $data = request()->validate([ ‘title’ => ‘required’, ‘link’ => ‘required’, ..

Read more

My code works for every row when I input values for calculation. However I want to get the rows total calculation separately. Please help !! $.ajax({ url:"{{route(‘student.1stq.get’)}}", type:"GET", data: {‘year_id’:year_id,’class_id’:class_id,’exam_type_id’:exam_type_id,’section_id’:section_id}, success: function (data){ $(‘#marks-generate’).removeClass(‘d-none’); var html = ”; $.each(data,function (key, v){ html += ‘<tr class="new">’+ ‘<td>’+v.user_name.id_no+'<input type="hidden" name="student_id[]" value="’+v.student_id+’"><input type="hidden" name="id_no[]" value="’+v.user_name.id_no+’"> </td>’+ ‘<td>’+v.user_name.name+'</td>’+ ‘<td><input ..

Read more

My code works for every row when I input values for calculation. However I want to get the rows total calculation separately. Please help !! ‘<tr class="new">’+ ‘<td><input type="number" id="ct_marks" required class="form-control form-control-sm prc" name="ct_marks[]" > </td>’ + ‘<td><input type="number" id="cw_marks" required class="form-control form-control-sm prc" name="cw_marks[]" ></td>’ + ‘<td><input type="number" id="hp_marks" required class="hp_marks form-control form-control-sm ..

Read more