@php $currsiteurl = $_SERVER['HTTP_HOST']; if($currsiteurl=="qwikaide.com"){ $sitename = "QwikAide"; $email = "support@qwikaide.com"; $download=false; } else { $sitename = "iLife Genie"; $email = "info@ilifegenie.com"; $download=true; } @endphp My Profile @include('layouts.style') @include('layouts.nav')

My Profile

@if(Session::has( 'success' ))
{{ Session::get( 'success' ) }}
@elseif( Session::has( 'warning' ))
{{ Session::get( 'warning' ) }}
@endif
{{ (Auth()->user()->name) }}
{{ (Auth()->user()->mobile) }}
{{ (Auth()->user()->email) }}
@php $up = App\Models\UserPackage::where('user_id',auth()->user()->id)->orderBy('end_date','desc')->orderBy('package_id','desc')->first(); $total_limit = App\Models\UserPackage::where('user_id',(auth()->user()->parent>0?auth()->user()->parent:auth()->user()->id))->sum('question_limit'); if(auth()->user()->parent>0){ $used_limit = App\Models\UserQuestion::whereRaw('user_id IN (SELECT id FROM users WHERE parent="'.auth()->user()->parent.'")')->count(); $today_used_limit = App\Models\UserQuestion::whereRaw('user_id IN (SELECT id FROM users WHERE parent="'.auth()->user()->parent.'")')->where('created_at',date("Y-m-d"))->count(); $monthly_used_limit = App\Models\UserQuestion::whereRaw('user_id IN (SELECT id FROM users WHERE parent="'.auth()->user()->parent.'")')->where('created_at','LIKE','%'.date("Y-m-").'%')->count(); } else { $used_limit = App\Models\UserQuestion::where('user_id',auth()->user()->id)->count(); $today_used_limit = App\Models\UserQuestion::where('user_id',auth()->user()->id)->where('created_at',date("Y-m-d"))->count(); $monthly_used_limit = App\Models\UserQuestion::where('user_id',auth()->user()->id)->where('created_at','LIKE','%'.date("Y-m-").'%')->count(); } @endphp @if($up && $up->package) {{ $up->package->name }}
{{ $up->end_date }} @else Forever Free @endif
{{$total_limit}}
{{$used_limit}} total questions asked
{{$monthly_used_limit}} questions asked this month
{{$today_used_limit}} questions asked today
@php $referral_count = false; @endphp
@if(auth()->user()->my_referrer_id=="")
@csrf  
You cannot change your referrer id once you update.
@else @php $referral_count = true; $rc = App\Models\User::where('referral',auth()->user()->my_referrer_id)->count(); @endphp   Copy ID
Contact {{$email}} to change your referrer ID @endif @if($download)
Download your referral card
@endif
@if($referral_count)
{{$rc}}
@endif @if(Auth()->user()->level=="3" || Auth()->user()->level=="4" || Auth()->user()->level=="5" || Auth()->user()->level=="1")
user()->chat_model=="1") checked @endif> gpt-3.5-turbo    user()->chat_model=="2") checked @endif> gpt-4
@php $words = App\Models\WordLog::where('user_id',auth()->user()->id)->where('month',date('m-Y'))->first(); @endphp

({{$words?$words->total_count:0}} out of 5,00,000 words used with GPT-4)

@endif
@if(Auth()->user()->id==3 || Auth()->user()->id==4) @endif
@if(Auth()->user()->id==3) Export PDF @endif
@include('layouts.footer') @include('layouts.script')