@extends('layouts.layout-2') @section('styles') @endsection @section('content') @php $viewerId = (int) auth()->id(); $medals = [1 => '๐ฅ', 2 => '๐ฅ', 3 => '๐ฅ']; $categoryIcons = [ 'recruiters' => '๐', 'new_customer_abos' => '๐', 'customer_abo_points' => '๐', 'customer_abos_total' => 'โญ', 'total_points' => '๐', ]; $formatValue = fn ($value) => number_format((float) $value, floor((float) $value) == (float) $value ? 0 : 1, ',', '.'); $periodOptions = collect($periods)->mapWithKeys(fn (array $period) => [ sprintf('%d-%02d', $period['year'], $period['month']) => HTMLHelper::getMonth($period['month']).' '.$period['year'], ])->all(); $selectedPeriod = $selected ? sprintf('%d-%02d', $selected['year'], $selected['month']) : null; @endphp
{{ __('recognitions.hero_text') }}
@if ($recognitions['is_final']) {{ __('recognitions.status_final', ['date' => $recognitions['frozen_at']?->format('d.m.Y')]) }} @else {{ __('recognitions.status_preliminary', ['date' => $recognitions['freeze_date']->format('d.m.Y')]) }} @endif| {{ __('recognitions.live_rank') }} | {{ __('recognitions.live_name') }} | {{ __('recognitions.categories.'.$category.'.unit') }} |
|---|---|---|
| {{ $medals[$row['rank']] ?? $row['rank'].'.' }} |
@include('components._avatar', [
'imageUrl' => $row['profile_image_url'] ?? null,
'firstName' => $row['first_name'],
'lastName' => $row['last_name'],
'size' => 32,
])
{{ $row['first_name'] }} {{ $row['last_name'] }}
@if ((int) $row['user_id'] === $viewerId)
{{ __('recognitions.self') }}
@endif
|
{{ $formatValue($row['value']) }} |