@php $sr = 1; @endphp
@forelse ($user->referredUsers as $referred)
@php
// us user ke coins nikale (maan ke chal raha hu 'transactions' table me save ho raha)
$coins = $referred->transactions->sum('amount');
$time = optional($referred->transactions->first())->created_at;
@endphp