|
|
@@ -49,9 +49,11 @@
|
|
|
<td class="column_{{$headerName}}" @isset($routeName) onclick="location.href='{{ route($routeName, $string->id) }}'" @endisset>
|
|
|
@if(str_ends_with($headerName, '_id'))
|
|
|
@php
|
|
|
- $relation = str_replace('_id', '', $headerName);
|
|
|
+ $relation = \Illuminate\Support\Str::camel(str_replace('_id', '', $headerName));
|
|
|
@endphp
|
|
|
{!! $string->$relation?->name; !!}
|
|
|
+ @elseif(str_ends_with($headerName, '_date'))
|
|
|
+ {{ \App\Helpers\DateHelper::getHumanDate($string->$headerName) }}
|
|
|
@else
|
|
|
{!! $string->$headerName !!}
|
|
|
@endif
|