11{{-- Role Name --}}
22<div class =" tw:mb-8" >
3- <label for =" name" class =" tw:block tw:font-semibold tw:tracking-wider tw:text-slate-500 tw:dark:text-dark-white-400 tw:mb-2" >
3+ <label for =" name" class =" tw:block tw:text-2xl tw: font-semibold tw:tracking-wider tw:text-slate-500 tw:dark:text-dark-white-400 tw:mb-2" >
44 {{ __ (' permissions.rbac.role_name' ) } }
55 </label >
66 <input type =" text" name =" name" id =" name" required
7- class =" tw:w-full tw:px-4 tw:py-2.5 tw:rounded-lg tw:border tw:border-slate-200 tw:dark:border-dark-gray-100 tw:bg-white tw:dark:bg-dark-gray-500 tw:text-slate-800 tw:dark:text-dark-white-100 tw:placeholder-slate-400 tw:dark:placeholder-dark-white-400 tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-indigo-500 tw:dark:focus:ring-dark-gray-100 tw:focus:border-transparent tw:transition tw:duration-150 tw:text-base "
7+ class =" tw:w-full tw:px-4 tw:py-2.5 tw:rounded-lg tw:border tw:border-slate-200 tw:dark:border-dark-gray-100 tw:bg-white tw:dark:bg-dark-gray-500 tw:text-slate-800 tw:dark:text-dark-white-100 tw:placeholder-slate-400 tw:dark:placeholder-dark-white-400 tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-indigo-500 tw:dark:focus:ring-dark-gray-100 tw:focus:border-transparent tw:transition tw:duration-150 tw:text-lg "
88 placeholder =" {{ __ (' permissions.rbac.role_name_placeholder' ) } }"
99 value =" {{ old (' name' , $role -> name ?? ' ' ) } }"
1010 @if (isset ($role ) && in_array (strtolower ($role -> name ), [' admin' , ' global-read' ]) ) readonly @endif >
@@ -18,7 +18,7 @@ class="tw:w-full tw:px-4 tw:py-2.5 tw:rounded-lg tw:border tw:border-slate-200 t
1818 {{-- Section header --}}
1919 <div class =" tw:flex tw:items-center tw:justify-between tw:mb-5 tw:pb-3 tw:border-b tw:border-slate-100 tw:dark:border-dark-gray-200" >
2020 <div class =" tw:flex tw:items-center tw:gap-4" >
21- <span class =" tw:text-lg tw:font-bold tw:text-slate-800 tw:dark:text-dark-white-100" >
21+ <span class =" tw:text-xl tw:font-bold tw:text-slate-800 tw:dark:text-dark-white-100" >
2222 {{ __ (' permissions.rbac.permissions' ) } }
2323 </span >
2424 {{-- Search --}}
@@ -28,19 +28,19 @@ class="tw:w-full tw:px-4 tw:py-2.5 tw:rounded-lg tw:border tw:border-slate-200 t
2828 </span >
2929 <input type =" text" x-model =" search"
3030 placeholder =" {{ __ (' permissions.rbac.search_permissions' ) } }"
31- class =" tw:pl-8 tw:pr-4 tw:py-1.5 tw:border tw:border-slate-200 tw:dark:border-dark-gray-100 tw:rounded-lg tw:bg-white tw:dark:bg-dark-gray-500 tw:text-slate-800 tw:dark:text-dark-white-200 tw:placeholder-slate-400 tw:dark:placeholder-dark-white-400 tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-indigo-500 tw:dark:focus:ring-dark-gray-100 tw:focus:border-transparent tw:text-sm tw:transition tw:duration-150" >
31+ class =" tw:pl-8 tw:pr-4 tw:py-1.5 tw:border tw:border-slate-200 tw:dark:border-dark-gray-100 tw:rounded-lg tw:bg-white tw:dark:bg-dark-gray-500 tw:text-slate-800 tw:dark:text-dark-white-200 tw:placeholder-slate-400 tw:dark:placeholder-dark-white-400 tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-indigo-500 tw:dark:focus:ring-dark-gray-100 tw:focus:border-transparent tw:text-lg tw:transition tw:duration-150" >
3232 </div >
3333 </div >
3434 <div class =" tw:flex tw:items-center tw:gap-3 tw:text-sm" >
3535 <button type =" button"
3636 @click =" permissions = Array.from(document.querySelectorAll('input[name=\'permissions[]\']')).map(el => el.value)"
37- class =" tw:inline-flex tw:items-center tw:gap-1.5 tw:text-indigo-600 tw:dark:text-dark-white-300 tw:hover:text-indigo-800 tw:dark:hover:text-dark-white-100 tw:font-semibold tw:transition-colors tw:duration-150" >
37+ class =" tw:inline-flex tw:items-center tw:text-lg tw: gap-1.5 tw:text-indigo-600 tw:dark:text-dark-white-300 tw:hover:text-indigo-800 tw:dark:hover:text-dark-white-100 tw:font-semibold tw:transition-colors tw:duration-150" >
3838 <i class =" fas fa-check-square" ></i >{{ __ (' permissions.rbac.select_all' ) } }
3939 </button >
4040 <span class =" tw:text-slate-300 tw:dark:text-dark-gray-100" >|</span >
4141 <button type =" button"
4242 @click =" permissions = []"
43- class =" tw:inline-flex tw:items-center tw:gap-1.5 tw:text-slate-500 tw:dark:text-dark-white-400 tw:hover:text-slate-700 tw:dark:hover:text-dark-white-200 tw:font-semibold tw:transition-colors tw:duration-150" >
43+ class =" tw:inline-flex tw:items-center tw:text-lg tw: gap-1.5 tw:text-slate-500 tw:dark:text-dark-white-400 tw:hover:text-slate-700 tw:dark:hover:text-dark-white-200 tw:font-semibold tw:transition-colors tw:duration-150" >
4444 <i class =" fas fa-square" ></i >{{ __ (' permissions.rbac.clear_all' ) } }
4545 </button >
4646 </div >
@@ -74,17 +74,17 @@ class="tw:inline-flex tw:items-center tw:gap-1.5 tw:text-slate-500 tw:dark:text-
7474 @foreach ($groupPerms as $p )
7575 <div class =" tw:flex tw:items-start tw:gap-3"
7676 x-show =" isPermMatch('{{ $p [' label' ] } } ', '{{ $p [' description' ] } } ', '{{ $group } } ')" >
77- <div class =" tw:flex-shrink-0 " >
77+ <div class =" tw:flex tw:items-center tw:h-5 " >
7878 <input type =" checkbox" name =" permissions[]" value =" {{ $p [' name' ] } }" id =" perm-{{ $p [' name' ] } }"
7979 x-model =" permissions"
80- class =" tw:h-4 tw:w-4 tw:text-indigo-600 tw:focus:ring-indigo-500 tw:border-slate-300 tw:dark:border-dark-gray-100 tw:rounded tw:cursor-pointer tw:bg-white tw:dark:bg-dark-gray-300 tw:transition tw:duration-150" >
80+ class =" tw:h-6 tw:w-6 tw:text-indigo-600 tw:focus:ring-indigo-500 tw:border-slate-300 tw:dark:border-dark-gray-100 tw:rounded tw:cursor-pointer tw:bg-white tw:dark:bg-dark-gray-300 tw:transition tw:duration-150" >
8181 </div >
82- <div >
83- <label for =" perm-{{ $p [' name' ] } }" class =" tw:block tw:text-lg tw:font-semibold tw:text-slate-800 tw:dark:text-white tw:cursor-pointer tw:leading-7" >
82+ <div class = " tw:ms-2 tw:text-sm tw:select-none " >
83+ <label for =" perm-{{ $p [' name' ] } }" class =" tw:block tw:text-xl tw:font-semibold tw:text-slate-800 tw:dark:text-white tw:cursor-pointer tw:leading-7" >
8484 {{ $p [' label' ] } }
8585 </label >
8686 @if ($p [' description' ] )
87- <p class =" tw:text-sm tw:text-slate-500 tw:dark:text-dark-white-400 tw:mt-0.5 tw:leading-1" >
87+ <p class =" tw:text-lg tw:text-slate-500 tw:dark:text-dark-white-400 tw:mt-0.5 tw:leading-1" >
8888 {{ $p [' description' ] } }
8989 </p >
9090 @endif
0 commit comments