47 lines
2.6 KiB
PHP
47 lines
2.6 KiB
PHP
<div class="dropdown flex-right mt-2">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="Showdropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
|
@lang('select')
|
|
</button>
|
|
<ul class="dropdown-menu" aria-labelledby="Showdropdown">
|
|
@if(Request::is(Request::segment(1)))
|
|
@can(Request::segment(1)."_validate")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".validations")}}">@lang('validations')</a></li>
|
|
@endcan
|
|
@can(Request::segment(1)."_setup")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".setups")}}">@lang('setups')</a></li>
|
|
@endcan
|
|
@can(Request::segment(1)."_pickup")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".pickups")}}">@lang('pickups')</a></li>
|
|
@endcan
|
|
|
|
@elseif(Request::is(Request::segment(1)."/pickups"))
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".index")}}">@lang('all')</a></li>
|
|
@can(Request::segment(1)."_validate")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".validations")}}">@lang('validations')</a></li>
|
|
@endcan
|
|
@can(Request::segment(1)."_setup")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".setups")}}">@lang('setups')</a></li>
|
|
@endcan
|
|
|
|
@elseif(Request::is(Request::segment(1)."/setups"))
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".index")}}">@lang('all')</a></li>
|
|
@can(Request::segment(1)."_validate")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".validations")}}">@lang('validations')</a></li>
|
|
@endcan
|
|
@can(Request::segment(1)."_pickup")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".pickups")}}">@lang('pickups')</a></li>
|
|
@endcan
|
|
@elseif(Request::is(Request::segment(1)."/validations"))
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".index")}}">@lang('all')</a></li>
|
|
@can(Request::segment(1)."_setup")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".setups")}}">@lang('setups')</a></li>
|
|
@endcan
|
|
@can(Request::segment(1)."_pickup")
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".pickups")}}">@lang('pickups')</a></li>
|
|
@endcan
|
|
@else
|
|
<li><a class="dropdown-item" href="{{Route(Request::segment(1).".index")}}">@lang('all')</a></li>
|
|
@endif
|
|
</ul>
|
|
</div>
|