@@ -254,7 +254,7 @@ public function listviewRow($row)
254254 $ response .= '<span><i class="fa fa-check"></i></span> ' ;
255255 } elseif ($ this ->columns ($ column , 'type ' ) == 'pivot ' ) {
256256 $ value = '' ;
257- foreach ($ row [$ column ] as $ opt ) {
257+ foreach ($ row [$ column ] as $ opt ) {
258258 $ value .= ($ value ? '; ' : '' ) . $ this ->getModelDataColumns ($ this ->columns ($ column ), $ opt );
259259 }
260260 $ response .= '<span> ' . $ value . '</span> ' ;
@@ -308,7 +308,7 @@ public function listviewData($parent = null, $depth = 0)
308308 }
309309 // Add with() if needed
310310 if ($ this ->module ('with ' )) {
311- foreach (explode (', ' , $ this ->module ('with ' )) as $ with ) {
311+ foreach (explode (', ' , $ this ->module ('with ' )) as $ with ) {
312312 $ model = $ model ->with (trim ($ with ));
313313 }
314314 }
@@ -503,9 +503,9 @@ public function rows($columnId, $column)
503503 }
504504
505505 if ($ opt ['type ' ] == 'string ' || $ opt ['type ' ] == 'password ' || $ opt ['type ' ] == 'date ' || $ opt ['type ' ] == 'datetime ' || $ opt ['type ' ] == 'number ' ) {
506- $ response .= '<input class=" ' . ($ opt ['type ' ] == 'date ' ? 'datepicker ' : '' ) . ($ opt ['type ' ] == 'datetime ' ? 'datetimepicker ' : '' ) . '" type=" ' . ($ opt ['type ' ]== 'string ' || $ opt ['type ' ] == 'date ' || $ opt ['type ' ] == 'datetime ' ? 'text ' : $ opt ['type ' ]) . '" name=" ' . $ columnId . '_ ' . $ columnId2 . '[]" data-column=" ' . $ columnId . '_ ' . $ columnId2 . '" placeholder=" ' . $ this ->locale ('placeholder ' , $ opt , '' ) . '"> ' ;
506+ $ response .= '<input class=" ' . ($ opt ['type ' ] == 'date ' ? 'datepicker ' : '' ) . ($ opt ['type ' ] == 'datetime ' ? 'datetimepicker ' : '' ) . '" type=" ' . ($ opt ['type ' ] == 'string ' || $ opt ['type ' ] == 'date ' || $ opt ['type ' ] == 'datetime ' ? 'text ' : $ opt ['type ' ]) . '" name=" ' . $ columnId . '_ ' . $ columnId2 . '[]" data-column=" ' . $ columnId . '_ ' . $ columnId2 . '" placeholder=" ' . $ this ->locale ('placeholder ' , $ opt , '' ) . '"> ' ;
507507 } elseif ($ opt ['type ' ] == 'foreign ' ) {
508- $ response .= $ this ->foreign ($ columnId . '_ ' . $ columnId2. '[] ' , $ opt , false );
508+ $ response .= $ this ->foreign ($ columnId . '_ ' . $ columnId2 . '[] ' , $ opt , false );
509509 } else {
510510 $ response .= $ opt ['type ' ];
511511 }
0 commit comments