@extends('backEnd.master') @section('title') @lang('hr.staff_details') @endsection @section('mainContent') @php function showTimelineDocName($data) { $name = explode('/', $data); $number = count($name); return $name[$number - 1]; } function showDocumentName($data) { $name = explode('/', $data); $number = count($name); return $name[$number - 1]; } @endphp

@lang('hr.staff_details')

@lang('hr.staff_name')
@if (isset($staffDetails)) {{ $staffDetails->full_name }} @endif
@lang('hr.role')
@if (isset($staffDetails)) {{ $staffDetails->roles->name }} @endif
@lang('hr.designation')
@if (isset($staffDetails)) {{ !empty($staffDetails->designations) ? $staffDetails->designations->title : '' }} @endif
@lang('hr.department')
@if (isset($staffDetails)) {{ !empty($staffDetails->departments) ? $staffDetails->departments->name : '' }} @endif
@lang('hr.epf_no')
@if (isset($staffDetails)) {{ $staffDetails->epf_no }} @endif
@lang('hr.basic_salary')
@if (isset($staffDetails)) {{ currency_format($staffDetails->basic_salary) }} @endif
@lang('hr.contract_type')
@if (isset($staffDetails)) {{ $staffDetails->contract_type }} @endif
@lang('hr.date_of_joining')
@if (isset($staffDetails)) {{ $staffDetails->date_of_joining != '' ? dateConvert($staffDetails->date_of_joining) : '' }} @endif

@lang('hr.personal_info')

@lang('common.mobile_no')
@if (isset($staffDetails)) {{ $staffDetails->mobile }} @endif
@lang('hr.emergency_mobile')
@if (isset($staffDetails)) {{ $staffDetails->emergency_mobile }} @endif
@lang('common.email')
@if (isset($staffDetails)) {{ $staffDetails->email }} @endif
@lang('hr.driving_license')
@if (isset($staffDetails)) {{ @$staffDetails->driving_license }} @endif
@lang('common.gender')
@if (isset($staffDetails)) {{ @$staffDetails->genders->base_setup_name }} @endif
@lang('common.date_of_birth')
@if (isset($staffDetails)) {{ $staffDetails->date_of_birth != '' ? dateConvert($staffDetails->date_of_birth) : '' }} @endif
@lang('hr.marital_status')
@if (isset($staffDetails)) {{ $staffDetails->marital_status }} @endif
@lang('student.father_name')
@if (isset($staffDetails)) {{ $staffDetails->fathers_name }} @endif
@lang('hr.mother_name')
@if (isset($staffDetails)) {{ $staffDetails->mothers_name }} @endif
@lang('hr.qualifications')
@if (isset($staffDetails)) {{ $staffDetails->qualification }} @endif
@lang('hr.work_experience')
@if (isset($staffDetails)) {{ $staffDetails->experience }} @endif

@lang('hr.address')

@lang('hr.current_address')
@if (isset($staffDetails)) {{ $staffDetails->current_address }} @endif
@lang('hr.permanent_address')
@if (isset($staffDetails)) {{ $staffDetails->permanent_address }} @endif

@lang('hr.bank_account_details')

@lang('accounts.account_name')
@if (isset($staffDetails)) {{ $staffDetails->bank_account_name }} @endif
@lang('accounts.bank_account_number')
@if (isset($staffDetails)) {{ $staffDetails->bank_account_no }} @endif
@lang('accounts.bank_name')
@if (isset($staffDetails)) {{ $staffDetails->bank_name }} @endif
@lang('accounts.branch_name')
@if (isset($staffDetails)) {{ $staffDetails->bank_brach }} @endif

@lang('hr.social_links_details')

{{-- Custom field start --}} @include('backEnd.customField._coutom_field_show') {{-- Custom field end --}}
@if (count($staffPayrollDetails) > 0) @foreach ($staffPayrollDetails as $value) @endforeach @else @endif
@lang('hr.payslip_id') @lang('hr.month_year') @lang('common.date') @lang('hr.mode_of_payment') @lang('hr.net_salary')({{ generalSetting()->currency_symbol }}) @lang('common.status') @lang('common.action')
{{ $value->id }} {{ $value->payroll_month }} - {{ $value->payroll_year }} {{ $value->created_at != '' ? dateConvert($value->created_at) : '' }} {{ $payment_mode }} {{ $value->net_salary }} @if ($value->payroll_status == 'G') @endif @if ($value->payroll_status == 'P') @endif @if ($value->payroll_status == 'P') @endif
@lang('hr.no_payroll_data')
@php $diff = ''; @endphp @if (count($staffLeaveDetails) > 0) @foreach ($staffLeaveDetails as $value) @endforeach @else @endif
@lang('leave.leave_type') @lang('leave.leave_from') @lang('leave.leave_to') @lang('leave.apply_date') @lang('common.status') @lang('common.action')
{{ @$value->leaveDefine->leaveType->type }} {{ $value->leave_from != '' ? dateConvert($value->leave_from) : '' }} {{ $value->leave_to != '' ? dateConvert($value->leave_to) : '' }} {{ $value->apply_date != '' ? dateConvert($value->apply_date) : '' }} @if ($value->approve_status == 'P') @endif @if ($value->approve_status == 'A') @endif @if ($value->approve_status == 'C') @endif
@lang('hr.not_leaves_data')
@if ($staffDetails->joining_letter != '') @endif @if ($staffDetails->resume != '') @endif @if ($staffDetails->other_document != '') @endif @if (isset($staffDocumentsDetails)) @foreach ($staffDocumentsDetails as $key => $value) @endforeach @endif
@lang('hr.document_title') @lang('common.action')
@lang('hr.joining_letter')
@lang('hr.resume')
@lang('hr.other_documents')
{{ $value->title }} @lang('common.download')
{{-- Start Timeline Tab --}}
@if (isset($timelines)) @foreach ($timelines as $timeline)

{{ $timeline->date != '' ? dateConvert($timeline->date) : '' }}

{{ date('h:i a', strtotime($timeline->created_at)) }}
{{ $timeline->title }}

{{ $timeline->description }}

@if ($timeline->file != '') @lang('common.download') @endif
@endforeach @endif
{{-- End Timeline Tab --}} {{-- delete staff doc delete modal --}} {{-- delete staff doc delete end --}}
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js')