@if(!$member)
{{ ($transaction->points > 0) ? '+' : '' }}{!! trans('common.amount_points', ['points' => '' . $transaction->points . '']) !!}
@if(in_array($transaction->event, ['staff_redeemed_points_for_reward'])) {{ $transaction->reward_title }} @endif @if(in_array($transaction->event, ['initial_bonus_points', 'staff_credited_points_for_purchase', 'staff_credited_points'])) @if($transaction->expires_at->isPast() && $transaction->points_used == 0) {!! trans('common.points_expired', ['points' => '' . $transaction->points . '', 'dateDiffFromNow' => $transaction->expires_at->diffForHumans()]) !!} @elseif($transaction->expires_at->isPast() && $transaction->points_used > 0) @if($transaction->points - $transaction->points_used == 0) {!! trans('common.points_used', ['points_used' => '' . $transaction->points_used . '', 'points' => '' . ($transaction->points - $transaction->points_used) . '']) !!} @else {!! trans('common.points_used_and_expired', ['points_used' => '' . $transaction->points_used . '', 'points' => '' . ($transaction->points - $transaction->points_used) . '', 'dateDiffFromNow' => $transaction->expires_at->diffForHumans()]) !!} @endif @elseif($transaction->expires_at->isFuture() && $transaction->points_used == 0) {!! trans('common.points_expire', ['points' => '' . $transaction->points . '', 'dateDiffFromNow' => $transaction->expires_at->diffForHumans()]) !!} @elseif($transaction->expires_at->isFuture() && $transaction->points_used > 0) @if($transaction->points - $transaction->points_used == 0) {!! trans('common.points_used', ['points_used' => '' . $transaction->points_used . '', 'points' => '' . ($transaction->points - $transaction->points_used) . '']) !!} @else {!! trans('common.points_used_points_expire', ['points_used' => '' . $transaction->points_used . '', 'points' => '' . ($transaction->points - $transaction->points_used) . '', 'dateDiffFromNow' => $transaction->expires_at->diffForHumans()]) !!} @endif @endif @endif
@if($showStaff)