feature: send thankscard page
This commit is contained in:
@@ -3,13 +3,7 @@
|
||||
<div class="flex flex-col">
|
||||
@foreach($rankers as $item)
|
||||
@php
|
||||
$deptVal = $item->departments;
|
||||
if (is_numeric($deptVal)) {
|
||||
$idx = ((int)$deptVal) - 1;
|
||||
$teamName = config('constants.DEPARTMENTS')[$idx] ?? 'Team';
|
||||
} else {
|
||||
$teamName = $deptVal ?? 'Team';
|
||||
}
|
||||
$teamName = $item->department_name ?? 'Team';
|
||||
@endphp
|
||||
<x-ranking-item
|
||||
rank="{{ $item->rank }}"
|
||||
@@ -33,13 +27,7 @@
|
||||
<div class="mt-auto">
|
||||
<div class="my-3 border-t border-dashed border-gray-100 mx-2"></div>
|
||||
@php
|
||||
$currDeptVal = $currentUserRankItem->departments;
|
||||
if (is_numeric($currDeptVal)) {
|
||||
$idx = ((int)$currDeptVal) - 1;
|
||||
$currTeamName = config('constants.DEPARTMENTS')[$idx] ?? 'Team';
|
||||
} else {
|
||||
$currTeamName = $currDeptVal ?? 'Team';
|
||||
}
|
||||
$currTeamName = $currentUserRankItem->department_name ?? 'Team';
|
||||
@endphp
|
||||
<x-ranking-item
|
||||
rank="{{ $currentUserRankItem->rank > 0 ? $currentUserRankItem->rank : '-' }}"
|
||||
|
||||
Reference in New Issue
Block a user