我有一个表格,表格中有表格,表格中有行,或者我将动态添加行。
<table class="table table-bordered table-hover table-sm table-light sortable" >
<thead class="thead-light">
<tr>
<th scope="col">{{ __('additional_information.title') }}</th>
<th scope="col">{{ __('additional_information.text') }}</th>
<th scope="col">{{ __('additional_information.file') }}</th>
<th scope="col">{{ __('additional_information.is_public') }}</th>
<th scope="col">{{ __('additional_information.is_showcase') }}</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach ($additionalInformations as $additionalInformation)
<tr>
<td data-value="{{ $additionalInformation->title }}">
<input class="form-control" type="text" placeholder="{{ __('additional_information.title') }}" name="existing_additional_information_title[{{ $additionalInformation->id }}]" value='{{ $additionalInformation->title }}'>
</td>
<td data-value="{{ $additionalInformation->text }}">
<input class="form-control" type="text" placeholder="{{ __('additional_information.text') }}" name="existing_additional_information_texts[{{ $additionalInformation->id }}]" value='{{ $additionalInformation->text }}'>
</td>
<td id = "photo" class="d-inline-block text-truncate" data-value="{{ $additionalInformation->original_file_name }}" style="max-width: 300px;">
@empty($additionalInformation->original_file_name)
@else
<a href="/file/image/{{ $additionalInformation->file }}" data-placement="bottom" data-toggle="tooltip" data-html="true" title="<img src='/file/image/{{ $additionalInformation->file }}' width='180' >">{{ $additionalInformation->original_file_name }} </a>
繁星coding