如何将以下php代码转换为laravel刀片模板结构
object-fit
`
答案 0 :(得分:0)
@foreach($multiticheckbox as $key => $newrow)
<tr>
<td>{{ ucfirst($key) }}</td>
@foreach($newrow as $j => $chkboxes )
@foreach($chkboxes as $k => $item )
<td>
@if(sizeof($access_relation) )
@php
$checked = (isset($access_relation[$j][$k]))? 'checked':'';
@endphp
@endif
<input {{ $checked }} class="child_chkbox" type="checkbox" value="<?php echo $item; ?>" name="group_module_access[{{$j}}][{{ $k}}]"></td>
@endforeach
@endforeach
</tr>@endforeach