@extends('layouts.app') @section('page-title')

{{ __($pageTitle) }}

@endsection @push('head-script') @endpush @section('content')
user
user

{{ ucwords($employee->name) }}

{{ $employee->email }}

@lang('modules.employees.tasksDone')

{{ $taskCompleted }}

@lang('modules.employees.hoursLogged')

{{ $hoursLogged }}

@lang('modules.leaves.leavesTaken')

{{ $leavesCount }}

@lang('modules.leaves.remainingLeaves')

{{ ($allowedLeaves-count($leaves)) }}
@forelse($activities as $key=>$activity)
user'
{{ ucwords($employee->name) }} {{ $activity->created_at->diffForHumans() }}

{!! ucfirst($activity->activity) !!}

@if(count($activities) > ($key+1))
@endif @empty
@lang('messages.noActivityByThisUser')
@endforelse
@lang('modules.employees.employeeId')

{{ ucwords($employee->employeeDetail->employee_id) }}

@lang('modules.employees.fullName')

{{ ucwords($employee->name) }}

@lang('app.mobile')

{{ $employee->mobile ?? '-'}}


@lang('app.email')

{{ $employee->email }}

@lang('app.address')

{{ (!is_null($employee->employeeDetail)) ? $employee->employeeDetail->address : '-'}}


@lang('app.designation')

{{ (!is_null($employee->employeeDetail) && !is_null($employee->employeeDetail->designation)) ? ucwords($employee->employeeDetail->designation->name) : '-' }}

@lang('app.department')

{{ (!is_null($employee->employeeDetail) && !is_null($employee->employeeDetail->department)) ? ucwords($employee->employeeDetail->department->team_name) : '-' }}


@lang('modules.employees.slackUsername')

{{ (!is_null($employee->employeeDetail)) ? '@'.$employee->employeeDetail->slack_username : '-' }}

@lang('modules.employees.joiningDate')

{{ (!is_null($employee->employeeDetail)) ? $employee->employeeDetail->joining_date->format($global->date_format) : '-' }}


@lang('modules.employees.gender')

{{ $employee->gender }}

@lang('app.skills')
{{implode(', ', $employee->skills()) }}

@lang('modules.employees.hourlyRate')

{{ (count($employee->employee) > 0) ? $employee->employee[0]->hourly_rate : '-' }}

{{--Custom fields data--}} @if(isset($fields))

@foreach($fields as $field)
{{ ucfirst($field->label) }}

@if( $field->type == 'text') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'password') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'number') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'textarea') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'radio') {{ !is_null($employeeDetail->custom_fields_data['field_'.$field->id]) ? $employeeDetail->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($employeeDetail->custom_fields_data['field_'.$field->id]) && $employeeDetail->custom_fields_data['field_'.$field->id] != '') ? $field->values[$employeeDetail->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox') {{ !is_null($employeeDetail->custom_fields_data['field_'.$field->id]) ? $field->values[$employeeDetail->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'date') {{ isset($employeeDetail->custom_fields_data['field_'.$field->id])? Carbon\Carbon::parse($employeeDetail->custom_fields_data['field_'.$field->id])->format($global->date_format): ''}} @endif

@endforeach
@endif {{--custom fields data end--}}
@forelse($projects as $key=>$project) @empty @endforelse
# @lang('app.project') @lang('app.deadline') @lang('app.completion')
{{ $key+1 }} {{ ucwords($project->project_name) }} @if($project->deadline){{ $project->deadline->format($global->date_format) }}@else - @endif
@lang('app.completed'){{ $project->completion_percent }}%
{{ $project->completion_percent }}% @lang('app.completed')
@lang('messages.noProjectFound')

@lang('app.id') @lang('app.project') @lang('app.task') @lang('app.dueDate') @lang('app.status')

@lang('modules.leaves.leavesTaken') @lang('app.manage')

    @forelse($leaveTypes as $key=>$leaveType) @if (isset($employeeLeavesQuota[$key]) && $employeeLeavesQuota[$key]->no_of_leaves > 0)
  • {{ ucfirst($leaveType->type_name) }}
    {{ (isset($leaveType->leavesCount[0])) ? $leaveType->leavesCount[0]->count : '0' }} / {{ $employeeLeavesQuota[$key]->no_of_leaves }}
  • @endif @empty
  • @lang('messages.noRecordFound')
  • @endforelse

@forelse($leaves as $key=>$leave) @empty @endforelse
@lang('modules.leaves.leaveType') @lang('app.date') @lang('modules.leaves.reason')
{{ $leave->leave_date->format($global->date_format) }} {{ $leave->reason }}
@lang('messages.noRecordFound')
@lang('app.id') @lang('app.project') @lang('modules.employees.startTime') @lang('modules.employees.endTime') @lang('modules.employees.totalHours') @lang('modules.employees.memo')
@forelse($employeeDocs as $key=>$employeeDoc) @empty @endforelse
# @lang('app.name') @lang('app.action')
{{ $key+1 }} {{ ucwords($employeeDoc->name) }}
@lang('messages.noDocsFound')
{{--Ajax Modal--}} {{--Ajax Modal Ends--}} @endsection @push('footer-script')