This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function index(){ | |
$categoryList = Category::all(); | |
return view('category.list')->with('categoryList', $categoryList); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Simplified version of this https://esausilva.com/2016/01/29/move-items-between-two-listbox-using-jquery-html-select-tag/ but using only vanilla JavaScript in script tag | |
--> | |
<div class="subject-info-box-1"> | |
<select multiple="multiple" id='lstBox1' class="form-control"> | |
<option value="ajax">Ajax</option> | |
<option value="jquery">jQuery</option> | |
<option value="javascript">JavaScript</option> | |
<option value="mootool">MooTools</option> | |
<option value="prototype">Prototype</option> |