@extends('layouts.admin') @section('content')
Referrals
Referral List
Here's a list of all referrals
@include('includes.wallet.alert')
@foreach($referrals as $referral) @php $sponsor = \App\User::where(['id' => $referral->sponsor_id])->first(); $downline = \App\User::where(['id' => $referral->downline_id])->first(); @endphp @endforeach
Sponsor Downline Action
{{ $sponsor === null ? "" : $sponsor->username }} {{ $downline === null ? "" : $downline->username }} @if($sponsor !== null && $downline !== null) @else edit @endif



@include('includes.wallet.floats')
{{--@include('includes.wallet.sidebar')--}}
@endsection