We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 152368a commit 887334fCopy full SHA for 887334f
1 file changed
resources/views/crudboard/show.blade.php
@@ -3,10 +3,10 @@
3
<div class="card">
4
<div class="card-header">
5
<h5 class="card-title">
6
- @if($show->getTitle())
7
- {{ $show->getTitle() }}
+ @if($show->getTitle())
+ {{ $show->getTitle() }}
8
@else
9
- {{ $attributes['title']}}
+ {{ $attributes['title']}}
10
@endif
11
</h5>
12
</div>
@@ -21,8 +21,11 @@
21
@php
22
$value = $field->getValue() ;
23
$record = $show->getRecord();
24
+ if($formaterFunc = $field->getFormatValueCallable()){
25
+ $value = $formaterFunc($value,$record);
26
+ }
27
@endphp
- <x-dynamic-component :component="$component" :$value :$record />
28
+ <x-dynamic-component :component="$component" :$value :$record/>
29
30
{{$field->getValue()}}
31
0 commit comments