@@ -34,43 +34,7 @@ class="{{ $this->setTableDataClass($column->attribute, Arr::get($model->toArray(
34
34
{{ $key } } =" {{ $value } }"
35
35
@endforeach
36
36
>
37
- @if ($column -> hasComponents () )
38
- @if ($column -> componentsAreHiddenForModel ($model ) )
39
- @if ($message = $column -> componentsHiddenMessageForModel ($model ) )
40
- {{ $message } }
41
- @else
42
-   ;
43
- @endif
44
- @else
45
- @foreach ($column -> getComponents () as $component )
46
- @if (! $component -> isHidden () )
47
- @include ($component -> view (), [' model' => $model , ' attributes' => $component -> getAttributes (), ' options' => $component -> getOptions ()] )
48
- @endif
49
- @endforeach
50
- @endif
51
- @elseif ($column -> isView () )
52
- @include ($column -> view , [$column -> getViewModelName () => $model ] )
53
- @else
54
- @if ($column -> isHtml () )
55
- @if ($column -> isCustomAttribute () )
56
- {{ new \Illuminate\Support\ HtmlString (data_get ($model , $column -> attribute )) } }
57
- @else
58
- {{ new \Illuminate\Support\ HtmlString (Arr:: get ($model -> toArray (), $column -> attribute )) } }
59
- @endif
60
- @elseif ($column -> isUnescaped () )
61
- @if ($column -> isCustomAttribute () )
62
- {!! data_get ($model , $column -> attribute ) ! !}
63
- @else
64
- {!! Arr:: get ($model -> toArray (), $column -> attribute ) ! !}
65
- @endif
66
- @else
67
- @if ($column -> isCustomAttribute () )
68
- {{ data_get ($model , $column -> attribute ) } }
69
- @else
70
- {{ Arr:: get ($model -> toArray (), $column -> attribute ) } }
71
- @endif
72
- @endif
73
- @endif
37
+ @include (' laravel-livewire-tables::includes._column-data' )
74
38
</td >
75
39
@endforeach
76
40
0 commit comments