button.blade.php 1.1 KB

123456789101112131415161718192021222324
  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. @if($valueCount) &nbsp;({!! $valueCount !!}) @endif
  9. </button>
  10. @if($scopes->isNotEmpty())
  11. <ul class="dropdown-menu" role="menu">
  12. @foreach($scopes as $scope)
  13. {!! $scope->render() !!}
  14. @endforeach
  15. <li role="separator" class="dropdown-divider"></li>
  16. <li class="dropdown-item"><a href="{{ $url_no_scopes }}">{{ trans('admin.cancel') }}</a></li>
  17. </ul>
  18. <button type="button" class="btn btn-primary" data-toggle="dropdown" style="border-left: 0">
  19. @if($current_label) <span>{{ $current_label }}&nbsp;</span>@endif <i class="feather icon-chevron-down"></i>
  20. </button>
  21. @endif
  22. </div>