@extends($theme.'frontend.layouts.master') @section('title',__('Welcome In Home')) @section('content')
@foreach ($rankings as $rank)
@php $rankingIds = auth()->user()->rankings()->pluck('ranking_id')->toArray(); @endphp @php $rank = \App\Models\Ranking::find($rank->id); @endphp @if (in_array($rank->id, $rankingIds))
{{ $rank->title }}

{{ $rank->bonus }} {{ $general->currency }}

{{ __('You are eligible for this level') }}

@else
{{ $rank->title }}

{{ $rank->bonus }} {{ $general->currency }}

{{ __('You are not eligible for this level') }}

@endif
@endforeach
{{__('Current Balance')}}
{{round(auth()->user()->balance,8)}} {{$general->currency}}
{{__('Earning Total')}}
{{round($total_earn,8)}} {{$general->currency}}
{{__('Total Withdraw')}}
{{round($total_withdraw,8)}} {{$general->currency}}
@endsection