Skip to content

Commit

Permalink
adds KeyValue to OrderItemsTable for lunar_order_lines meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
shanerbaner82 committed Nov 5, 2024
1 parent d01de0d commit df87e1a
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ public static function getOrderLinesTableColumns(): array

return $states;
}),

KeyValue::make('meta_data')
->getStateUsing(function ($record) {

$states = [];

foreach($record->meta as $key => $value) {
$states[$key] = $value;
}

return $states;;
})
]),
])
->collapsed()
Expand Down

0 comments on commit df87e1a

Please sign in to comment.