convert to view component
This commit is contained in:
		@@ -85,12 +85,8 @@
 | 
			
		||||
 | 
			
		||||
                                <x-table.td class="w-6/12 sm:w-4/12">
 | 
			
		||||
                                    <x-slot name="first" class="flex items-center font-bold" override="class">
 | 
			
		||||
                                        <div class="w-48 flex truncate" data-truncate-parent>
 | 
			
		||||
                                            <div class="w-48 truncate" data-truncate>
 | 
			
		||||
                                                {{ $item->name }}
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        </div>
 | 
			
		||||
 | 
			
		||||
                                        {{ $item->name }}
 | 
			
		||||
                                        
 | 
			
		||||
                                        @if (! $item->enabled)
 | 
			
		||||
                                            <x-index.disable text="{{ trans_choice('general.items', 1) }}" />
 | 
			
		||||
                                        @endif
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								resources/views/components/marguee-text.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								resources/views/components/marguee-text.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<div class="flex lg:block truncate">
 | 
			
		||||
    <div data-truncate>
 | 
			
		||||
        {!! $slot !!}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
@@ -8,7 +8,9 @@
 | 
			
		||||
        }
 | 
			
		||||
    @endphp
 | 
			
		||||
    <div {{ $first_attributes }}>
 | 
			
		||||
        {!! $first !!}
 | 
			
		||||
        <x-marguee-text>
 | 
			
		||||
            {!! $first !!}
 | 
			
		||||
        </x-marguee-text>
 | 
			
		||||
    </div>
 | 
			
		||||
    @endif
 | 
			
		||||
 | 
			
		||||
@@ -21,9 +23,13 @@
 | 
			
		||||
        }
 | 
			
		||||
    @endphp
 | 
			
		||||
    <div {{ $second_attributes }}>
 | 
			
		||||
        {!! $second !!}
 | 
			
		||||
        <x-marguee-text>
 | 
			
		||||
            {!! $second !!}
 | 
			
		||||
        </x-marguee-text>
 | 
			
		||||
    </div>
 | 
			
		||||
    @endif
 | 
			
		||||
 | 
			
		||||
    {{ $slot }}
 | 
			
		||||
    <x-marguee-text>
 | 
			
		||||
        {{ $slot }}
 | 
			
		||||
    </x-marguee-text>
 | 
			
		||||
</td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user