This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/resources/views/sbadmindemo/widgets/dropdown-button.blade.php

26 lines
1.2 KiB
PHP
Raw Normal View History

2016-10-14 04:06:12 +00:00
<div class="btn-group @if (isset($up)) dropup @endif">
@if (isset($split))
<button type="button" class="btn btn-{{{ isset($class) ? $class : 'default' }}} {{{ isset($rounded) ? 'btn-rounded' : ''}}} {{{ isset($bordered) ? 'btn-bordered' : ''}}} @if (isset($size)) btn-{{$size}} @endif {{{ isset($disabled) ? 'disabled' : '' }}}">{{ $value }}</button>
<button type="button" class="btn btn-{{{ isset($class) ? $class : 'default' }}} {{{ isset($rounded) ? 'btn-rounded' : ''}}} {{{ isset($bordered) ? 'btn-bordered' : ''}}} dropdown-toggle haha" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only"></span>
</button>
@else
<button type="button" class="btn btn-{{{ isset($class) ? $class : 'default' }}} {{{ isset($rounded) ? 'btn-rounded' : ''}}} {{{ isset($bordered) ? 'btn-bordered' : ''}}} @if (isset($size)) btn-{{$size}} @endif {{{ isset($disabled) ? 'disabled' : '' }}} dropdown-toggle" data-toggle="dropdown" aria-expanded="false">{{ $value }}
<span class="caret"></span>
</button>
@endif
<ul class="dropdown-menu" role="menu">
@if (isset($submenu))
@foreach ($submenu as $menu)
<li><a href="{{ $menu['link'] }}"> {{ $menu['name'] }}</a></li>
@endforeach
@endif
</ul>
</div>