2022-06-01 10:15:55 +03:00

30 lines
990 B
PHP

<th scope="col" class="{{ $class }}" {{ $attributes }}>
@if (!empty($first))
@php
$first_attributes = $first->attributes;
if ((! $first->attributes->has('override')) || ($first->attributes->has('override') && ! in_array('class', explode(',', $first->attributes->get('override'))))) {
$first_attributes = $first->attributes->merge(['class' => 'font-medium truncate']);
}
@endphp
<div {{ $first_attributes }}>
{!! $first !!}
</div>
@endif
@if (!empty($second))
@php
$second_attributes = $second->attributes;
if ((! $second->attributes->has('override')) || ($second->attributes->has('override') && ! in_array('class', explode(',', $second->attributes->get('override'))))) {
$second_attributes = $second->attributes->merge(['class' => 'font-normal truncate']);
}
@endphp
<div {{ $second_attributes }}>
{!! $second !!}
</div>
@endif
{{ $slot }}
</th>