@php $canWrap = $canWrap(); $arrayState = $getState(); if ($arrayState instanceof \Illuminate\Support\Collection) { $arrayState = $arrayState->all(); } $arrayState = \Illuminate\Support\Arr::wrap($arrayState); @endphp
merge($getExtraAttributes(), escape: false) ->class([ 'fi-ta-color flex gap-1.5', 'flex-wrap' => $canWrap, 'px-3 py-4' => ! $isInline(), ]) }} > @if (count($arrayState)) @foreach ($arrayState as $state) @php $itemIsCopyable = $isCopyable($state); $copyableState = $getCopyableState($state) ?? $state; $copyMessage = $getCopyMessage($state); $copyMessageDuration = $getCopyMessageDuration($state); @endphp
$itemIsCopyable, ]) @style([ 'background-color: ' . e($state) => $state, ]) >
@endforeach @elseif (($placeholder = $getPlaceholder()) !== null) {{ $placeholder }} @endif