When I create a post, the user selects a server(guild), and I need to prohibit the selection of a server that was previously created
I tried via @if($server->title != $guild->id) But it doesn’t work
I also do @if(Auth::user()->id === $user->id) to check the output to a specific user of his server,Maybe it gets in the way
@foreach($users as $user)
@foreach($user->guilds as $guild)
@if(Auth::user()->id === $user->id)
@foreach($servers as $server)
@if($server->title != $guild->id)
<option value="{{$guild->id}}">{{$guild->name}}</option>
@endif
@endforeach
@endif
@endforeach
@endforeach