getBills(); $list = []; /** @var Bill $bill */ foreach ($result as $bill) { $list[$bill->id] = $bill->name . ' [' . $bill->match . ']'; } asort($list); $list = [0 => trans('csv.do_not_map')] + $list; return $list; } }