@component('laravel-crm::components.card') @component('laravel-crm::components.card-header') @slot('title') {{ $user->name }} @endslot @slot('actions') {{ ucfirst(__('laravel-crm::lang.back_to_users')) }} | @can('edit crm users') @endcan @can('delete crm users')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endcan
@endslot @endcomponent @component('laravel-crm::components.card-body')
{{ ucfirst(__('laravel-crm::lang.details')) }}

{{ ucfirst(__('laravel-crm::lang.name')) }}
{{ $user->name }}
{{ ucfirst(__('laravel-crm::lang.email')) }}
{{ $user->email }}
{{ ucfirst(__('laravel-crm::lang.email_verified')) }}
{{ ($user->email_verified_at) ? $user->email_verified_at->format($dateFormat.' '.$timeFormat) : null }}
{{ ucfirst(__('laravel-crm::lang.CRM_Access')) }}
{{ ($user->crm_access) ? 'Yes' : 'No' }}
{{ ucfirst(__('laravel-crm::lang.CRM_Role')) }}
{{ $user->roles()->first()->name ?? null }}
{{ ucfirst(__('laravel-crm::lang.created')) }}
{{ $user->created_at->format($dateFormat) }}
{{ ucfirst(__('laravel-crm::lang.last_online')) }}
{{ ($user->last_online_at) ? \Carbon\Carbon::parse($user->last_online_at)->diffForHumans() : 'Never' }}
@hasteamsenabled @can('view crm teams')
{{ ucfirst(__('laravel-crm::lang.teams')) }} ({{ $user->crmTeams->count() }})

@foreach($user->crmTeams as $team)

{{ $team->name }}

@endforeach @endcan @endhasteamsenabled
@endcomponent @endcomponent