File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
resources/views/components Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 44 <x-menus-divider :item =" $item" class =" py-2 px-16 border-0 bg-gray-500 text-gray-500 h-px" />
55 @else
66 @if ($item -> isActive () )
7- <x-menus-item :item =" $item" class =" py-2 px-16 block text-sm text-gray-600 hover:bg-blue-500 hover:text-white bg- gray-200 text-gray-700 border-r -4 border-gray -700" />
7+ <x-menus-item :item =" $item" class =" w-full inline-flex items-center py-3 px-6 text-sm font-semibold text-gray-800 transition-colors duration-150 hover:text-gray-800 dark: hover:text-gray-200 dark: text-gray-100 border-l -4 border-purple -700" />
88 @else
9- <x-menus-item :item =" $item" class =" py-2 px-16 block text-sm text-gray-600 hover:bg-blue-500 hover:text-white " />
9+ <x-menus-item :item =" $item" class =" w-full inline-flex items-center py-3 px-6 text-sm font-semibold text-gray-800 transition-colors duration-150 hover:text-gray-800 dark: hover:text-gray-200 dark:text-gray-100 " />
1010 @endif
1111 @endif
1212 @endforeach
Original file line number Diff line number Diff line change 1- <div x-data =" { open: false }" >
1+ <div x-data =" { open: {{ $item -> isActive () ? ' true ' : ' false' } } }" >
22 @if ($item -> haschildren () )
33 <button @click =" open = !open" {{ $attributes -> merge ($item -> attributes ) } } >
44 <span class =" flex items-center" >
55 <x-menus-icon class =" h-5 w-5" :item =" $item" />
6- <span class =" mx-4 font-medium " >{{ $item -> title } } </span >
6+ <span class =" mx-4" >{{ $item -> title } } </span >
77 </span >
88
99 <span >
Original file line number Diff line number Diff line change 22 @isset ($slot )
33 {{ $slot } }
44 @else
5- < i class = " {{ $icon } }" ></ i >
5+ {{ $icon } }
66 @endif
77</div >
Original file line number Diff line number Diff line change 11@if ($item -> haschildren () )
2- <div x-data =" { open: false }" {{ $attributes -> merge ($item -> attributes ) } } >
3- <button @click =" open = !open" >
2+ <div x-data =" { open: {{ $item -> isActive () ? ' true ' : ' false' } } }" {{ $attributes -> merge ($item -> attributes ) } } >
3+ <button @click =" open = !open" class = " flex justify-between items-center " >
44 <span class =" flex items-center" >
55 <x-menus-icon class =" h-5 w-5" :item =" $item" />
6- <span class =" mx-4 font-medium " >{{ $item -> title } } </span >
6+ <span class =" mx-4" >{{ $item -> title } } </span >
77 </span >
88
99 <span >
1919@else
2020<a {{ $attributes -> merge ($item -> attributes )-> merge ([' href' => $item -> getUrl ()]) } } >
2121 <x-menus-icon class =" h-5 w-5" :item =" $item" />
22- <span class =" mx-4 font-medium " >{{ $item -> title } } </span >
22+ <span class =" mx-4" >{{ $item -> title } } </span >
2323</a >
2424@endif
Original file line number Diff line number Diff line change 44 <x-menus-divider :item =" $item" class =" border-0 bg-gray-500 text-gray-500 h-px" />
55 @else
66 @if ($item -> isActive () )
7- <x-menus-item :item =" $item" class =" w-full flex justify-between items-center py-3 px-6 text-gray-600 cursor-pointer hover:bg -gray-100 hover:text-gray-700 focus:outline-none bg- gray-200 text-gray-700 border-r -4 border-gray -700" />
7+ <x-menus-item :item =" $item" class =" w-full inline- flex items-center py-3 px-6 text-sm font-semibold text -gray-800 transition-colors duration-150 hover:text-gray-800 dark:hover:text- gray-200 dark: text-gray-100 border-l -4 border-purple -700" />
88 @else
9- <x-menus-item :item =" $item" class =" w-full flex justify-between items-center py-3 px-6 text-gray-600 cursor-pointer hover:bg -gray-100 hover:text-gray-700 focus:outline-none " />
9+ <x-menus-item :item =" $item" class =" w-full inline- flex items-center py-3 px-6 text-sm font-semibold text- gray-800 transition-colors duration-150 hover:text -gray-800 dark: hover:text-gray-200 dark:text-gray-100 " />
1010 @endif
1111 @endif
1212@endforeach
You can’t perform that action at this time.
0 commit comments