order by porject only for role 1

This commit is contained in:
Jérémy Munsch 2021-04-21 15:52:57 +02:00
parent 3cc36b7aec
commit e7aeda56e5

View file

@ -13,6 +13,7 @@
<a href="{{ route('ticket.index', ['status' => TicketStatus::archived()]) }}" class="float-right btn btn-sm btn-secondary mr-2">Tickets Archivés</a>
@endif
<a href="{{ route('ticket.index', ['rst' => 1]) }}" class="float-right btn btn-sm btn-dark mr-2">Réinitialiser le tri</a>
@if(auth()->user()->role === 1)
<div class="float-right mr-2">
<select class="custom-select" onchange="window.location='{{ route('ticket.index') }}?'+(this.value == -1 ? 'prs=-1' : 'pr='+this.value);">
<option value="-1">Tous</option>
@ -21,6 +22,7 @@
@endforeach
</select>
</div>
@endif
</h2>
<table class="table table-hover">
<thead>