@php use App\Services\HeroStatsService; use App\Models\Attribute; $statsService = new HeroStatsService($hero); $allAttributes = Attribute::all(); @endphp

Detailed Hero Stats

@foreach ($allAttributes as $attribute) @php $key = $attribute->key; $stat = $statsService->exposeStatBreakdown($key); @endphp @endforeach
Attribute Base Equip Buff Total
{{ $attribute->name }} {{ $stat['base'] }} +{{ $stat['equip'] }} +{{ $stat['buff'] }} {{ $stat['total'] }}