@if((auth()->user()->isUser() and config('can_user_change_department')) or !auth()->user()->isUser())
@endif
@if($ticket->isClosed() and ((auth()->user()->isUser() and config('can_user_reopen_ticket')) or (!auth()->user()->isUser())))
@elseif((!$ticket->isClosed() and (auth()->user()->isUser() and config('can_user_close_ticket')) or (!auth()->user()->isUser())))
@endif
@if(!$ticket->isClosed() or ($ticket->isClosed() and !auth()->user()->isUser()))
@endif