File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
resources/views/components Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 77<div
88 x-data =" {
99 field: '{{ $field } } ',
10- type: '{{ $type } } ',
1110 id: {{ $model -> id } } ,
1211 value: {{ json_encode ($model -> $field ) } } ,
1312 original: {{ json_encode ($model -> $field ) } } ,
Original file line number Diff line number Diff line change 2424 {{ $header -> title } }
2525 </a >
2626 <a href =" #!" wire:click.prevent =" sort('{{ $header -> sortBy } } ')" class =" flex" >
27- <i data-feather =" chevron-up"
28- class =" {{ $sortBy === $header -> sortBy && $sortOrder === ' asc' ? ' text-gray-900' : ' text-gray-400' } } h-4 w-4" ></i >
29- <i data-feather =" chevron-down"
30- class =" {{ $sortBy === $header -> sortBy && $sortOrder === ' desc' ? ' text-gray-900' : ' text-gray-400' } } h-4 w-4" ></i >
27+ <i data-feather =" chevron-up" class =" {{ $sortBy === $header -> sortBy && $sortOrder === ' asc' ? ' text-gray-900' : ' text-gray-400' } } h-4 w-4" ></i >
28+ <i data-feather =" chevron-down" class =" {{ $sortBy === $header -> sortBy && $sortOrder === ' desc' ? ' text-gray-900' : ' text-gray-400' } } h-4 w-4" ></i >
3129 </a >
3230 </div >
3331 @else
@@ -61,8 +59,7 @@ class="{{ $sortBy === $header->sortBy && $sortOrder === 'desc' ? 'text-gray-900'
6159 <div class =" px-3 py-2 flex justify-end" >
6260 @foreach ($actionsByRow as $action )
6361 @component (' laravel-views::components.action' , [' action' => $action , ' item' => $item ] )
64- <i data-feather =" {{ $action -> icon } }"
65- class =" mr-2 text-gray-400 hover:text-blue-600 transition-all duration-300 ease-in-out focus:text-blue-600 active:text-blue-600" ></i >
62+ <i data-feather =" {{ $action -> icon } }" class =" mr-2 text-gray-400 hover:text-blue-600 transition-all duration-300 ease-in-out focus:text-blue-600 active:text-blue-600" ></i >
6663 @endcomponent
6764 @endforeach
6865 </div >
@@ -71,4 +68,4 @@ class="mr-2 text-gray-400 hover:text-blue-600 transition-all duration-300 ease-i
7168 </tr >
7269 @endforeach
7370 </tbody >
74- </table >
71+ </table >
Original file line number Diff line number Diff line change 66
77class UI
88{
9- public function editable ($ model , $ field, $ type = ' input ' )
9+ public function editable ($ model , $ field )
1010 {
1111 return view ('laravel-views::components.editable ' , [
1212 'model ' => $ model ,
13- 'field ' => $ field ,
14- 'type ' => $ type ,
13+ 'field ' => $ field
1514 ])->render ();
1615 }
1716
You can’t perform that action at this time.
0 commit comments