convert helpers

This commit is contained in:
Russ Long 2018-12-23 09:36:03 -05:00
parent 4e3053f9ae
commit b9bef5a385

View File

@ -41,11 +41,8 @@ class ItemSelectList
{
public static function ItemShowNumbers()
{
$item_num_results = DB::select("SELECT
*
FROM items
ORDER BY item_assigned_num
");
$item_num_results = Items::orderBy('item_assigned_num')
->get();
$item_nums = '<option disabled="disabled" selected="selected" value="0">choose...</option>';
foreach($item_num_results as $item_num_result){
$item_nums .= '<option value="' . $item_num_result->iditems . '">' . $item_num_result->item_assigned_num . '</option>';