@extends('layouts.app') @section('styles') @endsection @section('content')

{{ $user->name }}

{{ csrf_field() }} {{ method_field('PATCH') }}
 
@role('admin')
{{ csrf_field() }}
@endrole
{{ csrf_field() }}
{{ __('Profiles for') }} {{ $user->name }}
@if ($usercompletedprofiles->isEmpty())
{{ __('No Completed Profiles') }}
@else
{{ __('Completed Profiles') }}
@foreach ($usercompletedprofiles as $usercompletedprofile) @php $profilename=$profiles->where('id', $usercompletedprofile->profileID)->pluck('profilename')->first(); $profiledate=$usercompletedprofile->profileDate; if($profiles->where('id', $usercompletedprofile->profileID)->pluck('global')->first() == 0) $permission = "n.a."; else $permission=$usershares->where('profileID', $usercompletedprofile->profileID)->pluck('active')->first(); $download=$usercompletedprofile->downloadReport; $profileactive=$usercompletedprofile->active; $userprofileid=$usercompletedprofile->id; @endphp @endforeach
{{ __('Profile') }} {{ __('Profile completed') }} {{ __('Permission granted') }} {{ __('User can download report') }} {{ __('Report') }}
{{ __($profilename) }} @if (null!==$profiledate) {{ date('d-m-Y', strtotime($profiledate)) }} @endif @if ($permission == "1") @elseif ($permission == "0") @else {{ __($permission) }} @endif
@if ((null!==$profiledate) && (("1"==$permission)||("n.a."==$permission)))
@elseif ($profileactive!==null)
@endif
@endif
{{ __('Open Profiles') }}
@foreach ($profiles as $profile) @php $profileactive=$useropenprofiles->where('profileID', $profile->id)->first(); if($profile->global == 0) $permission = "n.a."; else $permission=$usershares->where('profileID', $profile->id)->pluck('active')->first(); $download=$useropenprofiles->where('profileID', $profile->id)->pluck('downloadReport')->first(); $userprofileid=$useropenprofiles->where('profileID', $profile->id)->pluck('id')->first(); @endphp @endforeach
  {{ __('Profile') }} {{ __('Permission granted') }} {{ __('User can download report') }}
@if (($profile->id!="4") || ($profileactive!==null)) @endif
{{ __($profile->trans('profilename')) }} @if ($permission == "1") @elseif ($permission == "0") @else {{ __($permission) }} @endif
@role('payupfront')

{{ __('You cannot change the profiles for users on this page. If you want to add a new profile for a user, you have to use the') }} {{ __('Add Users') }} {{ __('page') }}.

@endrole
{{ csrf_field() }}
@role('admin')
{{ __('Delete all user data for') }} {{ $user->name }}

{{ __('You can delete all user data from the database. This action cannot be undone!') }}

{{ csrf_field() }}
{{ __('Merge other user data with') }} {{ $user->name }}

{{ __('You can move all profile data from another user, or user & team data from another facilitator to') }} {{ $user->name }}, {{ __('or both.') }}

{{ __('Please select the user that you want to take the data from.') }}

{{ __('Name') }} {{ __('Email Address') }} {{ __('Created At') }} {{ __('Actions') }}
@endrole
@endsection @push('scripts') @endpush