Merge branch 'trunk'
This commit is contained in:
commit
35af24fad9
1 changed files with 6 additions and 2 deletions
|
|
@ -19,8 +19,12 @@
|
|||
<div class="float-end me-2">
|
||||
<select class="form-select" onchange="window.location='{{ route('ticket.index') }}?'+(this.value == -1 ? 'prs=-1' : 'pr='+this.value);">
|
||||
<option value="-1">{{ __('Tous') }}</option>
|
||||
@foreach(auth()->user()->projects as $project)
|
||||
<option value="{{$project->id}}" @if(intval(session('tickets.pr')) == $project->id)selected="selected" @endif>{{$project->name}}</option>
|
||||
@foreach($projects as $project)
|
||||
@if (Auth::user()->role->equals(Role::admin()))
|
||||
<option value="{{ $project->id }}" @if(intval(session('tickets.pr')) == $project->id)selected="selected" @endif>{{ $project->name }}</option>
|
||||
@elseif ($userPr->filter(function($pr) use($project) { return $pr->id === $project->id; })->count())
|
||||
<option value="{{ $project->id }}" @if(intval(session('tickets.pr')) == $project->id)selected="selected" @endif>{{ $project->name }}</option>
|
||||
@endif
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue