@extends('layouts.app') @section('content')
@php $score = $score ?? 40; $maxScore = 120; $fraction = min(max($score / $maxScore, 0), 1); $theta = M_PI * (1 - $fraction); $endX = round(160 + 100 * cos($theta), 2); $endY = round(140 - 100 * sin($theta), 2); @endphp

Trust score

@if($score > 0) @endif 0 120 {{ $score }}

The trust score is calculated according to the listed below. A higher trust score can make a better position in the marketplace for your sharing.

How your score is calculated
Max: 120 Points
@foreach(($criteria ?? []) as $item)
{{ $item['title'] }}
{{ $item['points'] }}

{{ $item['description'] }}

@if($item['status'] === 'completed') Completed @else Eligible @endif @if(!empty($item['action_url']) && !empty($item['action_label'])) {{ $item['action_label'] }} @endif
@endforeach
{{ ($isSuperAdmin ?? false) ? 'All Trust Score Events (Admin View)' : 'Recent Score History' }}
@if($events->total() > 0) {{ $events->total() }} recorded event(s) @endif
@if($events->count() > 0)
@if($isSuperAdmin ?? false)@endif @if(auth()->check() && auth()->user()->hasRole('super admin')) @endif @foreach($events as $event) @if($isSuperAdmin ?? false) @endif @if(auth()->check() && auth()->user()->hasRole('super admin')) @endif @endforeach
UserScore Change Reason Reviewer DateAction
{{ $event->user->name ?? 'N/A' }}
{{ $event->user->email ?? '' }}
@php $change = (float) $event->score_change; @endphp @if($change >= 0) +{{ number_format($change, 2) }} @else {{ number_format($change, 2) }} @endif {{ $event->reason ?: 'Periodic score review' }} {{ $event->reviewer->name ?? 'System' }} {{ $event->created_at ? $event->created_at->format('d M Y, h:i A') : '-' }}
@csrf @method('DELETE')
@if($events->hasPages()) @endif @else
Standard Initial Score Active

Your account is in good standing with baseline trust score. New events will appear here when verified.

@endif
@endsection