js function refactoring
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<td class="{{ $class }}" {{ $attributes }}>
|
||||
<td data-truncate-table class="{{ $class }}" {{ $attributes }}>
|
||||
@if (!empty($first))
|
||||
@php
|
||||
$first_attributes = $first->attributes;
|
||||
@ -32,7 +32,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div>
|
||||
<span data-truncate>
|
||||
{{ $slot }}
|
||||
|
@ -8,7 +8,11 @@
|
||||
}
|
||||
@endphp
|
||||
<div {{ $first_attributes }}>
|
||||
{!! $first !!}
|
||||
<div>
|
||||
<span data-truncate>
|
||||
{!! $first !!}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@ -21,9 +25,17 @@
|
||||
}
|
||||
@endphp
|
||||
<div {{ $second_attributes }}>
|
||||
{!! $second !!}
|
||||
<div>
|
||||
<span data-truncate>
|
||||
{!! $second !!}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ $slot }}
|
||||
<div>
|
||||
<span data-truncate>
|
||||
{{ $slot }}
|
||||
</span>
|
||||
</div>
|
||||
</th>
|
||||
|
Reference in New Issue
Block a user