@extends('layouts.app') @section('title', __( 'lang_v1.view_user' )) @section('content')

@lang( 'lang_v1.view_user' )

@component('components.widget', ['class' => 'box-solid'])

{{$user->user_full_name}}

@lang( 'business.email' ): {{$user->email}}

@lang( 'user.role' ): {{$user->role_name}}

@lang( 'business.username' ): {{$user->username}}

@lang( 'lang_v1.cmmsn_percent' ): {{$user->cmmsn_percent}}%

@if($user->status == 'active') @lang('business.is_active') @else @lang('business.inactive') @endif

@lang( 'lang_v1.cmmsn_percent' ): {{$user->cmmsn_percent}}%

@php $selected_contacts = '' @endphp @if(count($user->contactAccess)) @php $selected_contacts_array = []; @endphp @foreach($user->contactAccess as $contact) @php $selected_contacts_array[] = $contact->name; @endphp @endforeach @php $selected_contacts = implode(', ', $selected_contacts_array); @endphp @else @php $selected_contacts = __('lang_v1.all'); @endphp @endif

@lang( 'lang_v1.allowed_contacts' ): {{$selected_contacts}}

@include('user.show_details') @endcomponent
@endsection