@extends('user.layout') @section('title','আমার নেটওয়ার্ক') @section('content') @php $bnLevels = [ 1=>'১ম লেভেল',2=>'২য় লেভেল',3=>'৩য় লেভেল',4=>'৪র্থ লেভেল',5=>'৫ম লেভেল', 6=>'৬ষ্ঠ লেভেল',7=>'৭ম লেভেল',8=>'৮ম লেভেল',9=>'৯ম লেভেল',10=>'১০ম লেভেল', ]; $totalAll = max(1, (int)($summary['total'] ?? 0)); $customerPercent = ($summary['customer'] ?? 0) > 0 ? round(($summary['customer'] / $totalAll) * 100) : 0; $businessPercent = ($summary['business'] ?? 0) > 0 ? round(($summary['business'] / $totalAll) * 100) : 0; @endphp
{{ auth()->id()===$rootUser->id ? 'আমার নেটওয়ার্ক' : $rootUser->name.' এর নেটওয়ার্ক' }}
১০ লেভেল টিম রিপোর্ট
{{ $summary['total'] ?? 0 }}
Total
{{ $summary['customer'] ?? 0 }}
Customer
{{ $customerPercent }}%
{{ $summary['business'] ?? 0 }}
Business
{{ $businessPercent }}%
@foreach($levels as $levelData) @php $lvl = $levelData['level']; $total = $levelData['total']; $customer = $levelData['customer']; $business = $levelData['business']; $progress = $total > 0 ? round(($total / $totalAll) * 100) : 0; @endphp
{{ $bnLevels[$lvl] }} {{ $total }}
{{ $customer }}
{{ $business }}
{{ $progress }}% অগ্রগতি
@endforeach
@endsection