@extends('backoffice.layouts.app') @section('content')
{{-- HEADER --}}
Referral Data
Data upline dan downline member
{{ $referrals->total() }} Referral
{{-- SEARCH --}}
Search Referral
Cari referral code, username, atau email
@if(request('no_referral') == '1') @endif
@if($search || request('per_page') || request('no_referral')) Batal @endif
{{-- TABLE --}}
Referral List
Showing {{ $referrals->count() }} of {{ $referrals->total() }} records
{{ $referrals->currentPage() }} / {{ $referrals->lastPage() }}
@forelse($referrals as $r) @empty @endforelse
ID Downline Upline Level Referral Code Total Deposit Total Turnover Total Bonus Status Created
#{{ $r->id }}
{{ $r->downline_username ?? '-' }}
ID: {{ $r->user_id }}
@if(request('no_referral') == '1') NO UPLINE @else {{ $r->upline_username ?? '-' }} @endif
ID: @if(request('no_referral') == '1') - @else {{ $r->upline_id ?? '-' }} @endif
Level {{ $r->level }} {{ $r->referral_code ?? '-' }} {{ number_format((float)($r->total_deposit ?? 0), 0, ',', '.') }} {{ number_format((float)($r->total_turnover ?? 0), 0, ',', '.') }} {{ number_format((float)($r->total_bonus ?? 0), 0, ',', '.') }} @if($r->status == 'active') Active @else Inactive @endif {{ \Carbon\Carbon::parse($r->created_at)->format('Y-m-d H:i') }}
Tidak ada data referral
{{-- PAGINATION --}} @if ($referrals->hasPages()) @endif
@endsection @push('scripts') @endpush