Laravel dompdf 视图与刀片视图不匹配
我遇到了 Laravel DOMPDF 问题,我不知道
这是我的foreach代码循环
@foreach ($hari as $hr)
<tr>
<td rowspan="{{ $data->where('hari', $hr['id'])->count() }}" class="align-middle text-center">
<center>{{ $hr['hari'] }}</center>
</td>
@foreach ($data->where('hari', $hr['id']) as $item)
<td>
{{ $item->pelajaran->nama }}
</td>
<td>
{{ $item->ruangan->nama }}
</td>
<td>
{{ $item->guru->nama }}
</td>
<td>
{{ substr($item->mulai, 0, -3) }} - {{ substr($item->selesai, 0, -3) }}
</td>
</tr>
@endforeach
@endforeach
我不知道我的错误在哪里,请帮助解决这个问题
I got problem with Laravel DOMPDF and i dont know where is mistake
this my foreach code loop
@foreach ($hari as $hr)
<tr>
<td rowspan="{{ $data->where('hari', $hr['id'])->count() }}" class="align-middle text-center">
<center>{{ $hr['hari'] }}</center>
</td>
@foreach ($data->where('hari', $hr['id']) as $item)
<td>
{{ $item->pelajaran->nama }}
</td>
<td>
{{ $item->ruangan->nama }}
</td>
<td>
{{ $item->guru->nama }}
</td>
<td>
{{ substr($item->mulai, 0, -3) }} - {{ substr($item->selesai, 0, -3) }}
</td>
</tr>
@endforeach
@endforeach
I dont know where is my mistake, please help to solve this problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你的第一个@endforeach错误位置
your first @endforeach wrong position
尝试更改您的
@foreach
尝试在您的
dompdf 配置
文件中更改此内容 更改"dpi" => 96 至
"dpi" => 196
Try changing your
@foreach
try changing this in your
dompdf config
file change the"dpi" => 96
to"dpi" => 196
试试这个代码
try this code