@extends('layouts.app') @section('title', 'View User') @section('headSource') @endsection @section('content')

View {{$user->role}}

{{$user->name}}

{{$user->role}}

{{$user->email}}

{{$user->username}}

role == 'Client') ? 'active show' : '' }}">

Information

Name :
{{$user->name}}
Email :
{{$user->email}}
Username :
{{$user->username}}
Date of birth :
{{$user->date_of_birth}}
Gender :
{{$user->gender}}
Address :
{{$user->address}}
Phone Number :
{{$user->phone_number}}
Emergency Contact :
{{$user->emergency_contact}}
@if($user->role == "Staff")
Employee Id :
{{$user->employee_id}}
@endif @if($user->role == "Executive")
Business Number :
{{$user->business_number}}
@endif @if($user->role == "Client")
Staff :
@if($user->relateStaff()->first()) {{$user->relateStaff()->first()->name}} @endif
Identification Number :
{{$user->ddd_id}}
View notes in App :
{{$user->is_view_notes ? 'Yes' : 'No'}}
@endif {{--
Login From :
{{$user->login_from}}
--}}
Role :
{{$user->role}}
Status :
{!! ($user->status == 1)? 'Active': 'Inactive' !!}
@if($user->role != "SuperAdmin" && $user->role != 'Client') @if($user->role == "Executive" && (checkPermission('addUserCategory', Auth::user()->role) || Auth::user()->role == 'SuperAdmin'))

Assign New Categories

Assigned Categories

@foreach($user->userCategories as $item) @endforeach
Sr Title Action
{{$loop->iteration}} {{$item->title}} $item->pivot->id]) }}" class="deletedBtn btn btn-danger mr-1 shadow sharp"> Remove
@endif @if($user->role == "Staff")

Add Clients

Assigned Clients

{{----}} @foreach($user->staffClients as $client) {{----}} @endforeach
Sr NameUsernameEmail Action
{{$loop->iteration}} {{$client->name}}{{$client->username}}{{$client->email}}
@endif

Task History

Id Sr Sheet Client Created At Action
@endif
@endsection @section('footerSource') @endsection