title: Why in bootstrap 4.1 left aside menu icon to dropdown items is not on valid place?
body: <p>I have a left aside menu with submenus in laravel 5.7 / blade/ Bootstrap 4.1 app and if some element of submenu is opened
  I want to keep open parent menu item. I tried to keep it ny current control name as :</p>
  
  <pre><code>&lt;?php $manage_storage= ($current_controller_name == 'ClientsController'); ?&gt;
  
  &lt;div class="sidebar-header"&gt;
      @if(isset($app_name))&lt;h3&gt;{{ $app_name }}&lt;/h3&gt;@endif
  &lt;/div&gt;
  
  &lt;ul class="list-unstyled components"&gt;
  
      &lt;li&gt;
          &lt;a href="#users_submenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"&gt;Manage Users&lt;/a&gt;
          &lt;ul class="collapse list-unstyled" id="users_submenu"&gt;
              &lt;li&gt;
                  &lt;a href="#"&gt;Manage Departments&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="#"&gt;Manage Users&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  
  
      &lt;li&gt;
          &lt;a href="#manage_storage_submenu" data-toggle="@if($manage_storage) dropdown @else collapse @endif" aria-expanded="@if($manage_storage) true @else false @endif" class="@if($manage_storage) @else dropdown-toggle @endif"&gt;Manage Storage&lt;/a&gt;
          &lt;ul class="collapse list-unstyled @if($manage_storage) show @endif" id="manage_storage_submenu"&gt;
              &lt;li class=" @if($current_controller_name == 'ClientsController') active @endif "&gt;
                  &lt;a href="{{ url('admin/clients') }}"&gt;Manage Clients&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="#"&gt;Manage Locations&lt;/a&gt;
              &lt;/li&gt;
  
              &lt;li class=" @if($current_controller_name == 'WarehousesController') active @endif "&gt;
                  &lt;a href="{{ url('admin/warehouses') }}" &gt;Manage Warehouses&lt;/a&gt;
              &lt;/li&gt;
  
          &lt;/ul&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>So if clients page is opened, then Manage Storage menu must be opened.</p>
  
  <p>But it does not work as I expected:
  Please, open :
  <a href="http://demo2.nilov-sergey-demo-apps.tk/admin/warehouses/2/edit" rel="nofollow noreferrer">http://demo2.nilov-sergey-demo-apps.tk/admin/warehouses/2/edit</a>
  It is under credentials   admin@demo.com 111111</p>
  
  <p>look at <a href="http://demo2.nilov-sergey-demo-apps.tk/admin/dashboard" rel="nofollow noreferrer">http://demo2.nilov-sergey-demo-apps.tk/admin/dashboard</a>  and  <a href="http://demo2.nilov-sergey-demo-apps.tk/admin/clients" rel="nofollow noreferrer">http://demo2.nilov-sergey-demo-apps.tk/admin/clients</a>  pages 
  for the first page (when Manage Storage is not opened) icon to dropdown submenu items is in other place of the page:
  on the second page( when Manage Storage is opened ) I do not see the icon to dropdown submenu items.</p>
  
  <p>How to fix it ?</p>
  
  <p><strong>UPDATED BLOCK # 1</strong> 
  Setting </p>
  
  <pre><code>&lt;li style="position: relative;"&gt;
  </code></pre>
  
  <p>Icon is on its proper place, but “Manage Storage” is not clickable.
  I tried and did not find any difference with “Manage Users” menu item, which has no php code in itself and works ok.
  What is wrong?</p>
  
  <p><strong>UPDATED BLOCK # 2:</strong>
  I checked my html generated code under <a href="https://validator.w3.org" rel="nofollow noreferrer">https://validator.w3.org</a>
  and got error :</p>
  
  <pre><code>Error: Bad value  false  for attribute aria-expanded on element a.
  From line 96, column 4; to line 96, column 112
  
  ive;"&gt;↩         &lt;a href="#manage_storage_submenu" data-toggle=" collapse " aria-expanded=" false " class=" dropdown-toggle "&gt;&lt;span 
  </code></pre>
  
  <p>I think that the error is called by space in aria-expanded= definition, as I had blade source :</p>
  
  <pre><code>    &lt;a href="#manage_storage_submenu" data-toggle="@if($manage_storage) dropdown @else collapse @endif" aria-expanded="@if($manage_storage) true @else false @endif" class="@if(!$manage_storage) dropdown-toggle @endif"&gt;&lt;span style="text-decoration: underline"&gt;Manage Storage&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>But if I remove space in aria-expanded= definition I got blade syntax error. Could it raise my problems? Which is the valid way here?</p>
  
  <p>Thanks!</p>