@extends('layouts.user') @section('content-user')

{{ $user->name }} | {{ trans('user.profile') }}

{{ trans('user.user_id') }}{{ $user->id }}
{{ trans('user.name') }}{{ $user->name }}
{{ trans('user.email') }}{{ $user->email }}
{{ trans('user.role') }}{!! $user->roleList() !!}
{{ trans('lang.lang') }}{{ trans('lang.'.$user->lang) }}

{{$user->name}} | {{ trans('user.current_jobs') }}

@php $currentJobTotal = 0; @endphp
{{ trans('job.progress') }} {{ trans('user.jobs_count') }}
0 - 10% {{ $count = $userCurrentJobs->filter(function ($job) { return $job->progress == 0; })->count() }} @php $currentJobTotal += $count; @endphp
11 - 50% {{ $count = $userCurrentJobs->filter(function ($job) { return $job->progress > 10 && $job->progress <= 50; })->count() }} @php $currentJobTotal += $count; @endphp
51 - 75% {{ $count = $userCurrentJobs->filter(function ($job) { return $job->progress > 50 && $job->progress <= 75; })->count() }} @php $currentJobTotal += $count; @endphp
76 - 99% {{ $count = $userCurrentJobs->filter(function ($job) { return $job->progress > 75 && $job->progress <= 99; })->count() }} @php $currentJobTotal += $count; @endphp
100% {{ $count = $userCurrentJobs->filter(function ($job) { return $job->progress == 100; })->count() }} @php $currentJobTotal += $count; @endphp
{{ trans('app.total') }} {{ $currentJobTotal }}
@endsection