@extends('components.customer-layout') @section('header')

Referral History

@endsection {{-- @dd($transactionsPagination, $transactions) --}} @section('content') {{-- description --}}
@if(empty(auth()->user()->referredBy))
Set Your Upline
@if(!empty($error))

{{ $error }}

@endif @if(!empty($success))

{{ $success }}

@endif
@csrf
@error('referralCode')

{{ $message }}

@enderror
@endif
Records
@if(!empty($sum))

Available Redeem Amount : {{ number_format($sum , 0 , '.' , ',') }} FLT

@endif
@if ($downlines) {{-- --}} @foreach ($downlines as $index => $downline) @endforeach
S.No Full Name Username Amount Status Joined AtAction
{{ $index + 1 }}
{{ ucwords($downline->firstname) }}   {{ " ".ucwords($downline->lastname) }}
{{ ucwords($downline->username) }} {{ number_format($downline->amount , 0 , '.' , ',') }} FLT @if ($downline->redeemed == 1) {{ "Redeemed" }} @else {{ "Not Redeemed" }} @endif
{{ date('d M,Y', strtotime($downline->createdAt)) }}
@else @endif
@if(!empty($sum)) REDEEM EARNING @endif
@endsection