@extends('layouts.app') @section('title', __('User Profile')) @section('style') @endsection @section('wrapper')
User Avatar

{{ $user->username }}

@if($user->user_type == 1) {{__('Administrator')}} @else {{__('Member')}} @endif

{{ $user->country->name ?? '' }} - {{ $user->city->name ?? '' }}

{{ number_format($user->balance, 2) }}{{ $currency }}
{{__('Available Balance')}}
{{ $totalTasks }}
{{__('Total Tasks Created')}}
{{ $activeTasks }}
{{__('Active Tasks')}}
{{ $approvedProofs }}
{{__('Approved Proofs')}}
{{ number_format($totalEarnings, 2) }}₺
{{__('Total Earnings')}}
{{__('My Tasks')}}
@if($userTasks->count() > 0) @foreach($userTasks->take(5) as $task)
{{ $task->title }}

{{ Str::limit($task->description, 100) }}

{{ $task->status ? __('Active') : __('Inactive') }} {{ $task->created_at->format('d.m.Y') }}
{{ $task->reward }}₺
{{__('Reward')}}
@endforeach @if($userTasks->count() > 5) @endif @else

{{__('No social media tasks created yet')}}

{{__('Create First Task')}}
@endif
@if($userWatchTasks->count() > 0) @foreach($userWatchTasks->take(5) as $task)
{{ $task->title }}

{{ Str::limit($task->description, 100) }}

{{ $task->is_active ? __('Active') : __('Inactive') }} {{ $task->formatted_duration }}
{{ $task->reward_amount }}₺
{{ $task->current_completions }}/{{ $task->max_completions }}
@endforeach @if($userWatchTasks->count() > 5) @endif @else

{{__('No watch tasks created yet')}}

{{__('Create First Task')}}
@endif
@if($userWebsiteTasks->count() > 0) @foreach($userWebsiteTasks->take(5) as $task)
{{ $task->title }}

{{ $task->website_url }}

{{ $task->is_active ? __('Active') : __('Inactive') }} {{ $task->visit_duration }}s
{{ $task->reward_amount }}₺
{{ $task->current_visits }}/{{ $task->max_visits }}
@endforeach @if($userWebsiteTasks->count() > 5) @endif @else

{{__('No website visit tasks created yet')}}

{{__('Create First Task')}}
@endif
{{__('Edit Profile')}}
@csrf
Avatar
{{__('Click camera icon to change avatar')}}

{{__('Payment Information')}}
{{__('Required for withdrawal requests')}}
@endsection @section('script') @endsection