button.blade.php 1.1 KB

12345678910111213141516171819202122
  1. <div class="btn-group filter-button-group dropdown" style="margin-right:3px">
  2. <button
  3. class="btn btn-primary {{ $btn_class }}"
  4. @if($only_scopes)data-toggle="dropdown"@endif
  5. @if($scopes->isNotEmpty()) style="border-right: 0" @endif
  6. >
  7. <i class="feather icon-filter"></i>@if($show_filter_text)<span class="d-none d-sm-inline">&nbsp;&nbsp;{{ trans('admin.filter') }}</span>@endif
  8. </button>
  9. @if($scopes->isNotEmpty())
  10. <ul class="dropdown-menu" role="menu">
  11. @foreach($scopes as $scope)
  12. {!! $scope->render() !!}
  13. @endforeach
  14. <li role="separator" class="dropdown-divider"></li>
  15. <li class="dropdown-item"><a href="{{ $url_no_scopes }}">{{ trans('admin.cancel') }}</a></li>
  16. </ul>
  17. <button type="button" class="btn btn-primary" data-toggle="dropdown" style="padding: 0.75rem 1rem !important;border-left: 0">
  18. @if($current_label) <span>{{ $current_label }}&nbsp;</span>@endif <i class="feather icon-chevron-down"></i>
  19. </button>
  20. @endif
  21. </div>