{{str_replace('-', ' ', $type)}}
@foreach($data as $point) @endforeach
User Transaction Amount Points Date
{{$point->fname}} {{$point->lname}} @if($point->action == 'MEMBERSHIP_CREDIT') Membership Credit @elseif($point->action == 'POINTS_PURCHASED') Points Purchased @endif @if($point->amount) @if(in_array($point->action, ['MEMBERSHIP_CREDIT', 'POINTS_PURCHASED', 'BOOKING_CANCELLED'])) +{{convertCurrency($point->amount)}} {{session()->get('user_currency')}} @else -{{convertCurrency($point->amount)}} {{session()->get('user_currency')}} @endif @else N/A @endif @if($type == 'Total-Revenue' || $type == 'Transfer-Points' || $type == 'Subscription-Revenue' || $type == 'Topup-Points') {{$point->credit}} Points @elseif($type == 'Unclaimed-Points') {{$point->balance}} Points @elseif($type == 'Outstanding-Points') {{$point->point}} Points @endif {{date('d M Y',strtotime($point->created_at))}}