[FEAT] 優化後端帳號權限邏輯、開發商品管理功能及聯絡資訊 UI 改版
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 1m2s
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 1m2s
This commit is contained in:
@@ -110,7 +110,7 @@ $roleSelectConfig = [
|
||||
{{ __('User Info') }}</th>
|
||||
<th
|
||||
class="px-6 py-4 text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-[0.15em] border-b border-slate-100 dark:border-slate-800">
|
||||
{{ __('Email') }}</th>
|
||||
{{ __('Contact Info') }}</th>
|
||||
@if(auth()->user()->isSystemAdmin())
|
||||
<th
|
||||
class="px-6 py-4 text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-[0.15em] border-b border-slate-100 dark:border-slate-800">
|
||||
@@ -154,9 +154,13 @@ $roleSelectConfig = [
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-6 py-6">
|
||||
<span class="text-xs font-bold text-slate-500 dark:text-slate-400 tracking-widest">{{
|
||||
$user->email ?? '-' }}</span>
|
||||
<td class="px-6 py-6 font-display">
|
||||
<div class="flex flex-col">
|
||||
@if($user->phone)
|
||||
<span class="text-xs font-bold text-slate-500 dark:text-slate-400 tracking-widest">{{ $user->phone }}</span>
|
||||
@endif
|
||||
<span class="text-xs font-bold text-slate-400 dark:text-slate-500 @if($user->phone) mt-1 @endif tracking-widest">{{ $user->email ?? '-' }}</span>
|
||||
</div>
|
||||
</td>
|
||||
@if(auth()->user()->isSystemAdmin())
|
||||
<td class="px-6 py-6">
|
||||
@@ -194,7 +198,7 @@ $roleSelectConfig = [
|
||||
</td>
|
||||
<td class="px-6 py-6 text-right">
|
||||
<div class="flex justify-end items-center gap-2">
|
||||
@if(!$user->hasRole('super-admin'))
|
||||
@if(!$user->hasRole('super-admin') || auth()->user()->hasRole('super-admin'))
|
||||
@if($user->status)
|
||||
<button type="button"
|
||||
@click="toggleFormAction = '{{ route($baseRoute . '.status.toggle', $user->id) }}'; statusToggleSource = 'list'; isStatusConfirmOpen = true"
|
||||
|
||||
Reference in New Issue
Block a user