!99 Fix the tab_product module reporting an error when there is no data

* Fix the tab_product module reporting an error when there is no data
This commit is contained in:
pushuo 2023-05-17 03:11:48 +00:00 committed by Edward Yang
parent 812b7655af
commit fcb6c888dc
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@
@include('design._partial._module_tool')
<div class="module-info module-tab-product">
<div class="module-title">{{ $content['title'] }}</div>
<div class="module-title">{{ $content['title'] ?? '' }}</div>
<div class="container">
@if ($content['tabs'])
@if ($content['tabs'] ?? false)
<div class="nav justify-content-center mb-3">
@foreach ($content['tabs'] as $key => $tabs)
<a class="nav-link {{ $loop->first ? 'active' : '' }}" href="#tab-product-{{ $loop->index }}" data-bs-toggle="tab">{{ $tabs['title'] }}</a>