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

{{$user->name}} @include('admin.common.drop-down-menu', [ 'links' => [ [ 'route' => 'admin.users.edit', 'title' => trans('global.app_edit'), 'type' => 'edit', 'icon' => '', ], [ 'route' => 'admin.users.destroy', 'title' => trans('global.app_delete'), 'type' => 'delete', 'icon' => '', 'redirect_url' => url()->previous(), ], ], 'record' => $user, ] )

@lang('global.app_view')
@can('user_edit') @lang('global.app_edit') @endcan
@lang('global.users.fields.name') {{ $user->name }}
@lang('global.users.fields.email') {{ $user->email }}
@lang('global.users.fields.role') @foreach ($user->role as $singleRole) {{ $singleRole->title }} @endforeach
@lang('global.users.fields.department') {{ $user->department->name ?? '' }}
@lang('others.users.is-support-admin') {{ $user->ticketit_admin == 0 ? 'No' : 'Yes' }}
@lang('others.users.is-support-agent') {{ $user->ticketit_agent == 0 ? 'No' : 'Yes' }}
@if ( 'active' === $tabs['user_actions_active'] )
@include('admin.user_actions.records-display')
@endif @if ( 'active' === $tabs['internal_notifications_active'])
@include('admin.internal_notifications.records-display')
@endif @if ( 'active' === $tabs['departments_active'])
@include('admin.departments.records-display')
@endif @if ( 'active' === $tabs['assets_history_active'])
@include('admin.assets_histories.records-display')
@endif @if ( 'active' === $tabs['tasks_active'])
@include('admin.tasks.records-display')
@endif @if ( 'active' === $tabs['client_projects_active'])
@include('admin.client_projects.records-display')
@endif @if ( 'active' === $tabs['support_active'])
@include('ticketit::tickets.partials.datatable')
@endif @if ( 'active' === $tabs['assets_active'])
@include('admin.assets.records-display')
@endif @if ( 'active' === $tabs['support_created_active'])
@include('ticketit::tickets.partials.datatable')
@endif @if ( 'active' === $tabs['invoices_active'] )
@include('admin.invoices.records-display')
@endif @if ( 'active' === $tabs['quotes_active'] )
@include('quotes::admin.quotes.records-display')
@endif @if ( 'active' === $tabs['recurring_invoices_active'] )
@include('recurringinvoices::admin.recurring_invoices.records-display')
@endif @if ( 'active' === $tabs['proposals_active'] )
@include('proposals::admin.proposals.records-display')
@endif @if ( 'active' === $tabs['contracts_active'] )
@include('contracts::admin.contracts.records-display')
@endif

 

@lang('global.app_back_to_list')
@stop @section('javascript') @if ( 'active' === $tabs['user_actions_active'] ) @include('admin.user_actions.records-display-scripts', [ 'type' => 'user', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['internal_notifications_active'] ) @include('admin.internal_notifications.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['departments_active'] ) @include('admin.departments.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['assets_history_active'] ) @include('admin.assets_histories.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['tasks_active'] ) @include('admin.tasks.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['client_projects_active'] ) @include('admin.client_projects.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['support_active'] ) @include('ticketit::tickets.partials.datatable-scripts', [ 'type' => 'agent', 'type_id' => $user->id, 'complete' => false ]) @endif @if ( 'active' === $tabs['assets_active'] ) @include('admin.assets.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['support_created_active'] ) @include('ticketit::tickets.partials.datatable-scripts', [ 'type' => 'usersupportcreated', 'type_id' => $user->id, 'complete' => false ]) @endif @if ( 'active' === $tabs['invoices_active'] ) @include('admin.invoices.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['quotes_active'] ) @include('quotes::admin.quotes.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['recurring_invoices_active'] ) @include('recurringinvoices::admin.recurring_invoices.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @if ( 'active' === $tabs['proposals_active'] ) @include('proposals::admin.proposals.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id]) @endif @if ( 'active' === $tabs['contracts_active'] ) @include('contracts::admin.contracts.records-display-scripts', [ 'type' => 'contact', 'type_id' => $user->id ]) @endif @endsection