3636 <label class =" block text-sm font-semibold text-gray-700 mb-2" >Status</label >
3737 <select name =" status" class =" block w-full px-3 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-sm" >
3838 <option value =" " >All Statuses</option >
39- <option value =" processed" {{ request (' status' ) === ' processed' ? ' selected' : ' ' } } >✅ Processed</option >
40- <option value =" failed" {{ request (' status' ) === ' failed' ? ' selected' : ' ' } } >❌ Failed</option >
41- <option value =" processing" {{ request (' status' ) === ' processing' ? ' selected' : ' ' } } >⏳ Processing</option >
39+ <option value =" processed" {{ request (' status' ) === ' processed' ? ' selected' : ' ' } } >Processed</option >
40+ <option value =" failed" {{ request (' status' ) === ' failed' ? ' selected' : ' ' } } >Failed</option >
41+ <option value =" processing" {{ request (' status' ) === ' processing' ? ' selected' : ' ' } } >Processing</option >
4242 </select >
4343 </div >
4444
@@ -166,6 +166,8 @@ class="block w-full px-3 py-2 border border-gray-300 rounded-lg shadow-sm focus:
166166 $currentTags = request (' tags' , ' ' );
167167 $tagsArray = ! empty ($currentTags ) ? array_map (' trim' , explode (' ,' , $currentTags )) : [];
168168 $isActive = in_array ($tagValue , array_map (' strtolower' , $tagsArray ));
169+ $tagIcon = $tagData [' failed' ] > 0 ? ' x-circle' : ($tagData [' processed' ] > 0 ? ' check-circle' : ' tag' );
170+ $tagIconColor = $tagData [' failed' ] > 0 ? ' text-red-600' : ($tagData [' processed' ] > 0 ? ' text-green-600' : ' text-blue-600' );
169171 @endphp
170172 <button type =" button"
171173 data-tag =" {{ $tagValue } }"
@@ -175,15 +177,7 @@ class="tag-filter-button group inline-flex items-center px-3 py-2 rounded-lg tex
175177 {{ $tagData [' failed' ] > 0 ? ' bg-red-50 text-red-700 border border-red-200 hover:bg-red-100' :
176178 ($tagData [' processed' ] > 0 ? ' bg-green-50 text-green-700 border border-green-200 hover:bg-green-100' :
177179 ' bg-blue-50 text-blue-700 border border-blue-200 hover:bg-blue-100' ) } }" >
178- <span class =" mr-2" >
179- @if ($tagData [' failed' ] > 0 )
180- ❌
181- @elseif ($tagData [' processed' ] > 0 )
182- ✅
183- @else
184- 🏷️
185- @endif
186- </span >
180+ <i data-lucide =" {{ $tagIcon } }" class =" w-4 h-4 mr-2 {{ $tagIconColor } }" aria-hidden =" true" ></i >
187181 <span >{{ $tagData [' tag' ] } } </span >
188182 <span class =" ml-2 px-2 py-0.5 rounded-full text-xs font-semibold {{ $tagData [' failed' ] > 0 ? ' bg-red-100 text-red-800' : ($tagData [' processed' ] > 0 ? ' bg-green-100 text-green-800' : ' bg-blue-100 text-blue-800' ) } }" >
189183 {{ $tagData [' total' ] } }
0 commit comments