title: Selected value get from DB into dropdown select box
body: <p>I have an Employee Form Edit.
  My problem is, my function for the edit is working fine but I can't get the value of my employee type.</p>
  
  <p>I have 4 employee type:</p>
  
  <ul>
  <li>Staff  </li>
  <li>Supervisor  </li>
  <li>Manager  </li>
  <li>Super User  </li>
  </ul>
  
  <p>Every time I go to edit form, the employee type on drop down is always on staff (I want to display, if the employee is "Manager" then the drop box show Manager).</p>
  
  <p>This is the code for <strong>editroledetails.blade.php</strong></p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label for="editCustomerType"&gt;Customer Type&lt;/label&gt;&lt;br/&gt;
      &lt;select name="editCustomerType"&gt;
          &lt;option value="Staff"&gt;Staff&lt;/option&gt;
          &lt;option value="Supervisor"&gt;Supervisor&lt;/option&gt;
          &lt;option value="Manager"&gt;Manager&lt;/option&gt;
          &lt;option value="Super User"&gt;Super User&lt;/option&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller function</strong></p>
  
  <pre><code>public function editroledetails(Request $request)
  {
      $user = \Auth::user();
      $userphone = 0;
      $reportTo = DB::select(DB::raw("select username from customer_type where customer_type = 'Supervisor' or customer_type ='Manager' "));
  
      $select = DB::select(DB::raw("select customer_type from customer_type "));
      $data = [
          'editUsername' =&gt; $request-&gt;editUsername,
          'editNik' =&gt; $request-&gt;editNik,
          'editEmail' =&gt; $request-&gt;editEmail,
          'editRegIdentities' =&gt; $request-&gt;editRegIdentities,
          'editReportTo' =&gt; $request-&gt;editReportTo,
          'editID' =&gt; $request-&gt;editID
      ];
      return view('editroledetails', compact('user', 'userphone', 'data', 'reportTo', 'select'));
  }
  </code></pre>