@extends('back.layout') @section('title') {{ __('h5') }} - {{ __('n1') }} @endsection @php $pending = \App\Models\Submit::where('user_id', '=', $user->id)->where('status', '=', 'Pending')->get(); $pendingBalance = 0; foreach ($pending as $p) { $pendingBalance += \App\Models\Task::find($p->task_id)->price; } $aWithdraw = \App\Models\Transition::where('user_id', '=', $user->id)->where('type', '=', 'Withdraw')->where('status', '=', 'Complete')->get(); $AllWithdraw = 0; foreach ($aWithdraw as $a) { $AllWithdraw += $a->value; } @endphp @section('content')
@if (auth()->user()->id == 1)

{{ __('h6') }} : {{ $user->name }}

{{ __('h7') }} {{ $user->name }}
{{ __('h8') }} {{ $user->email }}
{{ __('h9') }} {{ $user->phone }}
{{ __('h10') }} {{ $user->wallet }}
{{ __('h11') }} {{ $user->balance + $pendingBalance }} TRX
{{ __('h12') }} {{ $user->balance }} TRX
{{ __('h13') }} {{ $pendingBalance }} TRX
{{ __('h14') }} {{ $AllWithdraw }} TRX
{{ __('h15') }} {{ \App\Models\User::find($user->id)->completed_tasks }} {{ __('h15s') }}
{{ __('h16') }} {{ $user->created_at }}
{{ __('h17') }} {{ $user->updated_at }}
{{ __('h18') }} {{ $user->ip }}
@endif @if (count(\App\Models\Transition::where('user_id', '=', $user->id)->where('type', '=', 'Withdraw')->get()) > 0)

{{ __('h22') }}

@endif @if (count($messages) > 0)

{{ __('h28') }}

@foreach ($messages as $message) @if ($message->from == auth()->user()->id)
{{ $message->message }}
{{ \Carbon\Carbon::parse($message->created_at)->diffForHumans() }}

@else
{{ $message->message }}
{{ \Carbon\Carbon::parse($message->created_at)->diffForHumans() }}

@endif @endforeach
@csrf @method('POST')
@endif
{{-- Modals --}} {{-- Send Message To The User --}} {{-- Edit User Data --}} {{-- Delete User Data --}} @endsection