Skip to content

Commit

Permalink
Allow values in deeper values
Browse files Browse the repository at this point in the history
  • Loading branch information
mbol8309 committed Aug 5, 2024
1 parent f3d0ce0 commit b4b6c92
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion resources/views/partials/fields/matrixRow.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
@foreach($columns as $column)

<th class="p-0 align-middle">
@php
$columnsArray = explode('.', $column);
$value= $row;
foreach($columnsArray as $curr) {
$value = $value[$curr] ?? "";
if ($value == "") break;
}
@endphp
{!!
$fields[$column]
->value($row[$column] ?? '')
->value($value)
->prefix($name)
->id("$idPrefix-$key-$column")
->name($keyValue ? $column : "[$key][$column]")
Expand Down

0 comments on commit b4b6c92

Please sign in to comment.