@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
user
@if ($employee->status == 'active') @endif @if ($employee->status == 'transfer') @endif

{{ ucwords($employee->name) . ' (' . $employee->employee_code . ')' }}

{{ $employee->email }} | {{ !is_null($employee->mobile) ? '+91 ' . $employee->mobile : '-' }}

{{ trans('employee/employee.gender') }}

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

{{ trans('employee/employee.department') }}

{{ !is_null($employee->department) ? ucwords($employee->department->name) : '-' }}

{{ trans('employee/employee.designation') }}

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

{{ trans('employee/employee.current_shift') }}

{{ !is_null($currentShift) ? ucwords($currentShift->name) : '-' }}

{{ trans('employee/employee.manager_name') }}

{{ !is_null($employee->hod) ? ucwords($employee->hod->name) : '-' }}

{{ trans('employee/employee.dob') }} {{ trans('employee/employee.date_of_joining') }} {{ trans('employee/employee_create.marital_status') }} {{ trans('employee/employee_create.address') }}
{{ !is_null($employee->dob) ? date('d/m/Y', strtotime($employee->dob)) : '-' }} {{ !is_null($employee->date_of_joining) ? date('d/m/Y', strtotime($employee->date_of_joining)) : '-' }} {{ !is_null($employee->marital_status) ? $employee->marital_status : '-' }} {{ !is_null($employee->geo_address) ? $employee->geo_address : '-' }}

{{ trans('employee/employee_create.documents') }}

{{ trans('employee/employee_create.document_title') }} {{ trans('employee/employee_create.document_action') }}
{{ trans('employee/employee_create.bank') }} @if (!is_null($employee->bank_attachment)) {{ trans('common/common.download') }} @else Not Uploded @endif
{{ trans('employee/employee_create.aadhar_card') }} @if (!is_null($employee->aadhar_front_attachment)) {{ trans('employee/employee_create.aadhar_front') }} {{ trans('common/common.download') }} @endif @if (!is_null($employee->aadhar_back_attachment)) {{ trans('employee/employee_create.aadhar_back') }} {{ trans('common/common.download') }} @endif @if (is_null($employee->aadhar_front_attachment) && is_null($employee->aadhar_back_attachment)) {{ trans('employee/employee_create.not_uploded') }} @endif
{{ trans('employee/employee_create.pf') }} @if (!is_null($employee->pf_attachment)) {{ trans('common/common.download') }} @else {{ trans('employee/employee_create.not_uploded') }} @endif
{{ trans('employee/employee_create.esic') }} @if (!is_null($employee->esic_attachment)) {{ trans('common/common.download') }} @else {{ trans('employee/employee_create.not_uploded') }} @endif
{{ trans('employee/employee_create.pan_card') }} @if (!is_null($employee->pan_attachment)) {{ trans('common/common.download') }} @else {{ trans('employee/employee_create.not_uploded') }} @endif
{{ trans('employee/employee_create.passport') }} @if (!is_null($employee->passport_front_attachment)) {{ trans('employee/employee_create.passport_front') }} {{ trans('common/common.download') }} @endif @if (!is_null($employee->passport_back_attachment)) {{ trans('employee/employee_create.passport_back') }} {{ trans('common/common.download') }} @endif @if (is_null($employee->passport_front_attachment) && is_null($employee->passport_back_attachment)) {{ trans('employee/employee_create.not_uploded') }} @endif
@if (count($healthRecords) > 0)
@foreach ($healthRecords as $healthRecord) @endforeach
{{ trans('employee/employee.test_name') }} {{ trans('emprecords/healthrecords.frequency') }} {{ trans('employee/employee.completed_date') }} {{ trans('employee/employee.due_date') }} {{ trans('common/common.status') }} {{ trans('common/common.attachment') }}
{{ $loop->iteration }} {{ $healthRecord->complianceType->name }} {{ ucfirst($healthRecord->complianceType->frequency->name) }} {{ !is_null($healthRecord->completed_date) ? date('d/m/Y', strtotime($healthRecord->completed_date)) : '-' }} {{ !is_null($healthRecord->next_due_date) ? date('d/m/Y', strtotime($healthRecord->next_due_date)) : '-' }} {{ ucfirst($healthRecord->status) }} {{ isset($healthRecord->attachments) ? 'View' : '' }}
@else

{{ trans('employee/employee.no_health_record_found') }}

@endif
@if (count($compliances) > 0)
@foreach ($compliances as $compliance) @endforeach
{{ trans('employee/employee.verification_name') }} {{ trans('emprecords/healthrecords.frequency') }} {{ trans('employee/employee.completed_date') }} {{ trans('employee/employee.due_date') }} {{ trans('common/common.status') }} {{ trans('common/common.attachment') }}
{{ $loop->iteration }} {{ $compliance->complianceType->name }} {{ ucfirst($compliance->complianceType->frequency->name) }} {{ !is_null($compliance->completed_date) ? date('d/m/Y', strtotime($compliance->completed_date)) : '-' }} {{ !is_null($compliance->next_due_date) ? date('d/m/Y', strtotime($compliance->next_due_date)) : '-' }} {{ ucfirst($compliance->status) }} {{ isset($compliance->attachments) ? 'View' : '' }}
@else

{{ trans('employee/employee.no_compliance_found') }}

@endif
@if (count($feedbacks) > 0)
@foreach ($feedbacks as $feedback) @endforeach
{{ trans('common/common.date') }} {{ trans('employee/employee.stars') }} {{ trans('emprecords/warning.feedback') }} {{ trans('emprecords/warning.rated_by') }} {{ trans('common/common.attachment') }}
{{ $loop->iteration }} {{ date('d/m/Y', strtotime($feedback->created_at)) }} @for ($i = 0; $i < $feedback->stars; $i++) @endfor @for ($i = $feedback->stars; $i < 5; $i++) @endfor {{ !is_null($feedback->feedback) ? $feedback->feedback : '-' }} @if ($feedback->created_by_type == 'admin') {{ !is_null($feedback->createdByAdmin) ? $feedback->createdbyAdmin->name : '-' }} @else {{ !is_null($feedback->createdByEmployee) ? $feedback->createdByEmployee->name : '-' }} @endif {{ isset($feedback->attachments) ? 'View' : '' }}
@else

{{ trans('employee/employee.no_feedbacks_found') }}

@endif
@if (count($shifts) > 0)
@foreach ($shifts as $shift) @endforeach
{{ trans('common/common.date') }} {{ trans('employee/employee.shift_name') }} {{ trans('employee/employee.shift_timing') }} {{ trans('employee/employee.in_time') }} {{ trans('employee/employee.out_time') }}
{{ $loop->iteration }} {{ date('d/m/Y', strtotime($shift['date'])) }} {{ isset($shift['data']) ? (is_null($shift['data']->rotaPlan) ? $shift['data']->name : $shift['data']->rotaPlan->shift->name) : '-' }} {{ isset($shift['data']) ? (is_null($shift['data']->rotaPlan) ? $shift['data']->start_time . ' - ' . $shift['data']->end_time : $shift['data']->rotaPlan->shift->start_time . ' - ' . $shift['data']->rotaPlan->shift->end_time) : '-' }} {{ !is_null($shift['inTime']) ? $shift['inTime'] : '-' }} {{ !is_null($shift['outTime']) ? $shift['outTime'] : '-' }}
@else

{{ trans('employee/employee.no_shift_found') }}

@endif
@if (count($warnings) > 0)
@foreach ($warnings as $warning) @endforeach
{{ trans('common/common.date') }} {{ trans('emprecords/warning.reason') }} {{ trans('emprecords/warning.other_reason') }} {{ trans('common/common.created_by') }} {{ trans('common/common.attachment') }}
{{ $loop->iteration }} {{ date('d/m/Y', strtotime($warning->created_at)) }} {{ !is_null($warning->reason) ? $warning->reason : '-' }} {{ !is_null($warning->other_reason) ? $warning->other_reason : '-' }} @if ($warning->created_by_type == 'admin') {{ !is_null($warning->createdByAdmin) ? $warning->createdbyAdmin->name : '-' }} @else {{ !is_null($warning->createdByEmployee) ? $warning->createdByEmployee->name : '-' }} @endif {{ trans('common/common.view') }}
@else

{{ trans('employee/employee.no_warnings_found') }}

@endif
@if (count($certificates) > 0)
@foreach ($certificates as $certificate) @endforeach
{{ trans('common/common.date') }} {{ trans('employee/employee.certificate_name') }} {{ trans('employee/employee.remarks') }} {{ trans('common/common.created_by') }} {{ trans('common/common.attachment') }}
{{ $loop->iteration }} {{ date('d/m/Y', strtotime($certificate->created_at)) }} {{ !is_null($certificate->name) ? $certificate->name : '-' }} {{ !is_null($certificate->remark) ? $certificate->remark : '-' }} @if ($certificate->created_by_type == 'admin') {{ !is_null($certificate->createdByAdmin) ? $certificate->createdbyAdmin->name : '-' }} @else {{ !is_null($certificate->createdByEmployee) ? $certificate->createdByEmployee->name : '-' }} @endif {{ trans('common/common.view') }}
@else

{{ trans('employee/employee.no_certificates_found') }}

@endif
@if (count($leaves) > 0)
@foreach ($leaves as $leave) @endforeach
{{ trans('employee/employee.type') }} {{ trans('employee/employee.total') }} {{ trans('employee/employee.applied') }} {{ trans('leave/leave.approved') }} {{ trans('leave/leave.pending') }} {{ trans('leave/leave.balance') }}
{{ $leave['name'] }} {{ $leave['total'] }} {{ $leave['applied'] }} {{ $leave['approved'] }} {{ $leave['pending'] }} {{ $leave['balance'] }}
@else

{{ trans('employee/employee.no_leaves_found') }}

@endif
@if (count($teams) > 0)
@foreach ($teams as $teamMember) @endforeach
{{ trans('employee/employee.member_name') }} {{ trans('master/master.email') }} {{ trans('employee/employee.contact') }} {{ trans('master/master.department') }} {{ trans('master/master.designation') }}
{{ $loop->iteration }} {{ $teamMember->name }} {{ $teamMember->email }} {{ !is_null($teamMember->mobile) ? '+91 ' . $teamMember->mobile : '-' }} {{ !is_null($teamMember->department) ? ucwords($teamMember->department->name) : '-' }} {{ !is_null($teamMember->designation) ? ucwords($teamMember->designation->name) : '-' }}
@else

{{ trans('employee/employee.no_team_found') }}

@endif
@if (count($userDevices) > 0)
@foreach ($userDevices as $userDevice) @endforeach
{{ trans('master/master.name') }} {{ trans('employee/employee.device_sr_no') }}
{{ $loop->iteration }} {{ $userDevice->name }} {{ $userDevice->devicekey }}
@else

{{ trans('employee/employee.no_record_found') }}

@endif
{{ trans('employee/employee.date_of_joining') }} {{ trans('employee/employee.date_of_transfer') }}
{{ date('d/m/Y', strtotime($employee->created_at)) }} {{ $employee->transfer_date ? date('d/m/Y', strtotime($employee->transfer_date)) : '' }}
@endsection @push('footer-script') @endpush