我想制作一个表格,每行都有一个编辑按钮。编辑按钮将呈现一个带有行加载数据的模式弹出窗口。
这是我的 blade.php
<div class="card-body">
@foreach($employee_education as $employee_education)
<div class="card card-primary card-outline">
<div class="card-header bg-white">
<h5 class="card-title m-0">
{{ $employee_education->degree_title }}
</h5>
<a
href="#"
data-toggle="modal"
id="education_edit_link"
data-target="#education_edit_modal"
class="btn btn-primary btn-xs"
style="float:right;color:white!important;"
>
<i class="fas fa-edit"></i> Edit
</a>
</div>
<div class="card-body bg-light">
<table class="table table-hover table-sm table-borderless">
<tbody>
<tr>
<th>Degree Title</th>
<td>{{$employee_education->degree_title}} </td>
</tr>
<tr>
<th>Institute</th>
<td>{{$employee_education->institute}} </td>
</tr>
<tr>
<th>Address </th>
<td>{{$employee_education->address}} </td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Modal -->
<div
class="modal fade"
id="education_edit_modal"
tabindex="-1"
role="dialog"
aria-labelledby="connection_detailsLabel"
aria-hidden="true"
>
但是模态每次只显示第一行数据。如何获取在我的模态中加载的单击行数据的数据
神不在的星期二
小怪兽爱吃肉
撒科打诨
随时随地看视频慕课网APP
相关分类