@extends('layouts.app')
@section('title', 'Gamification Reports')
@section('content')
<div class="row g-3">
<div class="col-lg-4"><div class="card"><div class="card-body"><h5>Recent Credits</h5>@foreach($topCredits as $row)<div class="small border-bottom py-1">{{ $row->user?->name }} +{{ $row->points }} ({{ $row->source }})</div>@endforeach</div></div></div>
<div class="col-lg-4"><div class="card"><div class="card-body"><h5>Recent Deductions</h5>@foreach($topDebits as $row)<div class="small border-bottom py-1">{{ $row->user?->name }} -{{ $row->points }} ({{ $row->source }})</div>@endforeach</div></div></div>
<div class="col-lg-4"><div class="card"><div class="card-body"><h5>Recent Achievements</h5>@foreach($achievements as $a)<div class="small border-bottom py-1">{{ $a->user?->name }} earned {{ $a->badge?->name }}</div>@endforeach</div></div></div>
</div>
@endsection
