@extends('Admin/layout') @section('title','List View Downline') @section('content') @if(has_permission('Downline Upline','List View Downline'))

List View Downline

@csrf
@if(!empty($downlinedata)) @foreach($downlinedata as $key => $value) @endforeach @endif
S.No Full Name GK Code Level Rera No Sponsor GK Code Sponsor Name Sponsor Rera No Status Opening Stock Joining Date Left Date Personal Sale Team Sale Total Sale Company Sale Cur Month
{{ $key + 1 }} {{ $value->name ?? '-' }} {{ $value->gk_code ?? '-' }} {{ $value->level ?? '-' }} {{ $value->rera_no ?? '-' }} {{ $value->sponsor_gk_code ?? '-' }} {{ $value->sponsor_name ?? '-' }} {{ $value->sponsor_rera_no ?? '-' }} @if(strtoupper($value->currentStatus ?? '') == 'ACTIVE') ACTIVE @elseif(strtoupper($value->currentStatus ?? '') == 'LEFT') LEFT @else {{ $value->currentStatus ?? '-' }} @endif {{ number_format((float)($value->openingStock ?? 0), 4) }} {{ $value->joining_date ?? '-' }} {{ !empty($value->left_date) ? $value->left_date : '-' }} {{ number_format((float)($value->PersonalSale ?? 0), 2) }} {{ number_format((float)($value->TeamSale ?? 0), 2) }} {{ number_format((float)($value->TotalSale ?? 0), 4) }} {{ number_format((float)($value->CompanySaleCurMonth ?? 0), 2) }}
@endif @endsection