@@ -109,10 +109,11 @@ public function time($name, $value = null, $options = array())
109109 * @param array $options
110110 * @param string $selected
111111 * @param array $attributes
112+ * @param bool $hasErrors
112113 *
113114 * @return string
114115 */
115- public function radios ($ name , $ options = array (), $ selected = null , $ attributes = array ())
116+ public function radios ($ name , $ options = array (), $ selected = null , $ attributes = array (), $ hasErrors = false )
116117 {
117118 $ selected = $ this ->getValueAttribute ($ name , $ selected );
118119
@@ -132,15 +133,15 @@ public function radios($name, $options = array(), $selected = null, $attributes
132133 'value ' => $ value ,
133134 'label ' => $ label ,
134135 'selected ' => $ selected == $ value ,
135- 'id ' => $ name .'_ ' .Str::slug ($ value )
136+ 'id ' => $ name .'_ ' .Str::slug ($ value ),
136137 ];
137138 }
138139
139140 unset ($ attributes ['inline ' ], $ attributes ['template ' ]);
140141
141142 return $ this ->theme ->render (
142143 $ template ,
143- compact ('name ' , 'radios ' , 'attributes ' ),
144+ compact ('name ' , 'radios ' , 'attributes ' , ' classes ' , ' hasErrors ' ),
144145 $ defaultTemplate
145146 );
146147 }
@@ -161,10 +162,11 @@ public function radios($name, $options = array(), $selected = null, $attributes
161162 * @param array $options
162163 * @param string $selected
163164 * @param array $attributes
165+ * @param bool $hasErrors
164166 *
165167 * @return string
166168 */
167- public function checkboxes ($ name , $ options = array (), $ selected = null , $ attributes = array ())
169+ public function checkboxes ($ name , $ options = array (), $ selected = null , $ attributes = array (), $ hasErrors = false )
168170 {
169171 $ selected = $ this ->getValueAttribute ($ name , $ selected );
170172
@@ -196,7 +198,7 @@ public function checkboxes($name, $options = array(), $selected = null, $attribu
196198
197199 return $ this ->theme ->render (
198200 $ template ,
199- compact ('name ' , 'checkboxes ' , 'attributes ' ),
201+ compact ('name ' , 'checkboxes ' , 'attributes ' , ' hasErrors ' ),
200202 $ defaultTemplate
201203 );
202204 }
0 commit comments