I'm using the following code to do a Collapse with bootstrap, it opens normally but does not close when clicking again, can anyone help me?
<div class="well">
<button href="#task" data-toggle="collapse" class="btn btn-default" type="button">
Mostrar tarefas <span class="badge">{{$tasks->count()}}</span>
</button>
<div ><br/>
<div id="task" class="collapse row">
@foreach($tasks as $task)
<div class="col-md-4">
<div class="panel panel-warning">
<div class="panel-heading">{{$task->title}}<a href="/tasks/detail/{{$task->id}}"
class="btn btn-xs btn-default float-right"
title="Ver tarefa"><i
class="fa fa-bell"></i>
</a>
</div>
<div class="panel-body">
{!! $task->description !!}
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>