@php use App\Models\Settings;$title = 'Employee Details'; $settings = Settings::first(); @endphp @section('title') {{$title}} @endsection @extends('layout') @section('main-content')

{{$title}}

@if ($user->img_url == null) User profile picture @else User profile picture @endif

{{$user->user_name}}

{{$user->designation}}

  • Primary sales target

    {{$settings->currency_symbol.''.($user->primary_sales_target ?? 0)}}

  • Secondary sales target

    {{$settings->currency_symbol.''.($user->secondary_sales_target ?? 0)}}

  • Available leaves

    {{$user->available_leaves}} days

$user->id])}}" method="post"> @csrf @if($user->status == 'active') @else @endif
Attendance Info
Attendance Type

{{$user->attendance_type}}


Device Info
@if ($user->userDevice != null) Brand

{{$user->userDevice->brand}}


Model

{{$user->userDevice->model}}


Device Type

{{$user->userDevice->device_type}}


Sdk Version

{{$user->userDevice->sdk_version}}


Last Reported Location

@if($user->userDevice->latitude == null || $user->userDevice->longitude == null) Location not available @else userDevice->latitude.",".$user->userDevice->longitude}}" target="_blank"> Open in maps @endif

Last Reported On

{{$user->userDevice->updated_at}}

{{-- @* Revoke Device*@--}} @else

Device not configured

@endif
Login Details
User Name {{$user->user_name}}
Phone Number {{$user->phone_number}}
Email {{$user->email}}
Personal Details
First Name {{$user->first_name}}
Last Name {{$user->last_name}}
Gender {{$user->gender}}
DOB {{$user->dob ?? 'N/A'}}
Unique Id {{$user->unique_id ?? 'N/A'}}
Alternate Phone Number {{$user->alternate_phone_number ?? 'N/A'}}
Address {{$user->address ?? 'N/A'}}
Work Details
Reporting Manager {{$managerName->getFullName() ?? 'N/A'}}
Shift {{$user->shift->title}}

Sun

Mon

Tue

Wed

Thu

Fri

Sat

Team {{$user->team->name ?? 'N/A'}}
Date of joining {{$user->date_of_joining ?? 'N/A'}}
Base salary {{$settings->currency_symbol.''.($user->base_salary ?? 0)}}
Designation {{$user->designation ?? 'N/A'}}
@endsection