osb/resources/theme/frontend/metronic/widgets/tabs.blade.php
2018-05-20 22:53:14 +10:00

30 lines
900 B
PHP

<!-- TABS -->
<div class="col-md-7 tab-style-1">
<ul class="nav nav-tabs">
@php($c=0)
@foreach ($so->page_tabs as $o)
<li @if(! $c++) class="active" @endif><a href="#tab-{{ $c }}" data-toggle="tab">{{ $o['title'] }}</a></li>
@endforeach
</ul>
<div class="tab-content">
@php($c=0)
@foreach ($so->page_tabs as $o)
<div class="tab-pane row fade in @if(! $c++) active @endif" id="tab-{{ $c }}">
<div class="col-md-3 col-sm-3">
<a href="{{ $o['image'] }}" class="fancybox-button" title="{{ $o['title'] }}" data-rel="fancybox-button">
<img class="img-responsive" src="{{ $o['image'] }}" alt="">
</a>
</div>
<div class="col-md-9 col-sm-9">
<p class="margin-bottom-10">{{ $o['text'] }}</p>
<p><a class="more" href="javascript:;">Read more <i class="icon-angle-right"></i></a></p>
</div>
</div>
@endforeach
</div>
</div>
<!-- END TABS -->