diff --git a/resources/views/dashboard/edit-item.blade.php b/resources/views/dashboard/edit-item.blade.php index 00d50f0..939c806 100644 --- a/resources/views/dashboard/edit-item.blade.php +++ b/resources/views/dashboard/edit-item.blade.php @@ -19,8 +19,7 @@
@foreach($columns as $column) - @set('col_name', $column['name']) - @set('value', empty($col_name) ? '' : $item->$col_name) + @set('value', empty($col_name) ? '' : $item[$column['name']]) @if($column['type'] == 'hidden')