How could i modify the code so that collapse panel is by default closed only on click it should open and again on click it should close. here is the code which I am using. The code makes Panel by default Open.
$(document).on('click', '.btn-click', function(e){
var $this = $(this);
if(!$this.hasClass('panel-collapsed')) {
$this.parents('.panel').find('.panel-body').slideUp();
$this.addClass('panel-collapsed');
$this.find('i').removeClass('fa-chevron-circle-up').addClass('fa-chevron-circle-down');
} else {
$this.parents('.panel').find('.panel-body').slideDown();
$this.removeClass('panel-collapsed');
$this.find('i').removeClass('fa-chevron-circle-down').addClass('fa-chevron-circle-up');
}
})