50 lines
1.6 KiB
PHP
50 lines
1.6 KiB
PHP
<ul class="nav nav-tabs with-tabs" role="tablist">
|
|
@foreach($formSectionNames as $section => $sectionName)
|
|
<li class="nav-item">
|
|
<a href="#{{$section}}" role="tab" data-toggle="tab"
|
|
class="nav-link @if($sectionName == reset($formSectionNames)) active @endif">
|
|
{{trans($sectionName)}}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
<div class="tab-content">
|
|
@foreach($formSections as $section => $view)
|
|
<div role="tabpanel" class="tabs-pane @if($view == reset($formSections)) in active @endif"
|
|
id="{{$section}}">
|
|
@include($view)
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
|
|
{{--<ul class='tabs'>--}}
|
|
{{--<li><a href='#tab1'>Tab 1</a></li>--}}
|
|
{{--<li><a href='#tab2'>Tab 2</a></li>--}}
|
|
{{--<li><a href='#tab3'>Tab 3</a></li>--}}
|
|
{{--</ul>--}}
|
|
{{--<div id='tab1'>--}}
|
|
{{--<p>Hi, this is the first tab.</p>--}}
|
|
{{--</div>--}}
|
|
{{--<div id='tab2'>--}}
|
|
{{--<p>This is the 2nd tab.</p>--}}
|
|
{{--</div>--}}
|
|
{{--<div id='tab3'>--}}
|
|
{{--<p>And this is the 3rd tab.</p>--}}
|
|
{{--</div>--}}
|
|
|
|
|
|
{{--<ul class="nav nav-tabs">--}}
|
|
{{--<li class="active"><a data-toggle="tab" href="#home">Home</a></li>--}}
|
|
{{--<li><a data-toggle="tab" href="#menu1">Menu 1</a></li>--}}
|
|
{{--</ul>--}}
|
|
|
|
{{--<div class="tab-content">--}}
|
|
{{--<div id="home" class="tab-pane fade in active">--}}
|
|
{{--<h3>HOME</h3>--}}
|
|
{{--<p>Some content.</p>--}}
|
|
{{--</div>--}}
|
|
{{--<div id="menu1" class="tab-pane fade">--}}
|
|
{{--<h3>Menu 1</h3>--}}
|
|
{{--<p>Some content in menu 1.</p>--}}
|
|
{{--</div>--}}
|
|
{{--</div>--}} |