m
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
@php
|
||||
$classes = $active
|
||||
? 'flex items-center gap-4 px-4 py-3 rounded-xl bg-[#eff4ff] text-[#3462f7] font-semibold transition-all duration-200'
|
||||
? 'flex items-center gap-4 px-4 py-3 rounded-xl bg-[#eff4ff] text-[#3462f7] font-medium transition-all duration-200'
|
||||
: 'flex items-center gap-4 px-4 py-3 rounded-xl text-gray-500 hover:bg-gray-50 hover:text-gray-900 font-medium transition-all duration-200';
|
||||
@endphp
|
||||
|
||||
|
||||
@@ -29,9 +29,11 @@
|
||||
Thanks đã gửi
|
||||
</x-sidebar-item>
|
||||
|
||||
<x-sidebar-item href="{{ route('user.ranking') }}" :active="request()->routeIs('user.ranking')" icon="trophy">
|
||||
Bảng xếp hạng
|
||||
</x-sidebar-item>
|
||||
@if(Auth::check() && Auth::user()->role == config('constants.ROLE_ADMIN'))
|
||||
<x-sidebar-item href="{{ route('user.ranking') }}" :active="request()->routeIs('user.ranking')" icon="trophy">
|
||||
Bảng xếp hạng
|
||||
</x-sidebar-item>
|
||||
@endif
|
||||
|
||||
|
||||
@if(Auth::check() && Auth::user()->role == config('constants.ROLE_ADMIN'))
|
||||
|
||||
@@ -13,7 +13,10 @@
|
||||
<div class="flex flex-col">
|
||||
<span class="text-[13px] font-semibold text-gray-500 mb-1.5">{{ $title }}</span>
|
||||
<div class="flex items-end gap-3 mb-1">
|
||||
<span class="text-[34px] font-bold text-[#1e293b] leading-none">{{ $value }}</span>
|
||||
@php
|
||||
$isShort = is_numeric(str_replace('#', '', $value)) || strlen($value) <= 4;
|
||||
@endphp
|
||||
<span class="{{ $isShort ? 'text-[34px] leading-none' : 'text-[17px] leading-tight' }} font-bold text-[#1e293b]">{{ $value }}</span>
|
||||
</div>
|
||||
|
||||
@if($growth)
|
||||
|
||||
@@ -67,12 +67,20 @@
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
<td class="px-6 py-3.5 whitespace-nowrap font-extrabold text-base">
|
||||
<td class="px-6 py-3.5 whitespace-nowrap font-extrabold text-base flex items-center gap-1.5">
|
||||
@if($isReceiver)
|
||||
<span class="text-green-600">+{{ $admin_record->received }}</span>
|
||||
@else
|
||||
<span class="text-blue-600">-{{ $admin_record->sent }}</span>
|
||||
@endif
|
||||
@php
|
||||
$themes = config('card_themes');
|
||||
$themeId = $admin_record->template_id ?? 1;
|
||||
$theme = $themes[$themeId] ?? $themes[1];
|
||||
@endphp
|
||||
<span class="text-xs font-semibold text-gray-500 flex items-center" title="{{ $theme['name'] }}">
|
||||
<span>{{ $theme['icon'] }}</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
|
||||
Reference in New Issue
Block a user