@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.human_resource') @lang('common.dashboard') @lang('hr.human_resource') @lang('hr.staff_details') @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.profile') @lang('hr.payroll') @lang('hr.leave') @lang('hr.documents') @lang('hr.timeline') @lang('common.edit') @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') @lang('hr.facebook_url') @if (isset($staffDetails)) {{ $staffDetails->facebook_url }} @endif @lang('hr.twitter_url') @if (isset($staffDetails)) {{ $staffDetails->twiteer_url }} @endif @lang('hr.linkedin_url') @if (isset($staffDetails)) {{ $staffDetails->linkedin_url }} @endif @lang('hr.instragram_url') @if (isset($staffDetails)) {{ $staffDetails->instragram_url }} @endif {{-- Custom field start --}} @include('backEnd.customField._coutom_field_show') {{-- Custom field end --}} @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') @if (count($staffPayrollDetails) > 0) @foreach ($staffPayrollDetails as $value) {{ $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') @lang('hr.generated') @endif @if ($value->payroll_status == 'P') @lang('hr.paid') @endif @if ($value->payroll_status == 'P') @lang('common.view_payslip') @endif @endforeach @else @lang('hr.no_payroll_data') @endif @lang('leave.leave_type') @lang('leave.leave_from') @lang('leave.leave_to') @lang('leave.apply_date') @lang('common.status') @lang('common.action') @php $diff = ''; @endphp @if (count($staffLeaveDetails) > 0) @foreach ($staffLeaveDetails as $value) {{ @$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') @lang('common.pending') @endif @if ($value->approve_status == 'A') @lang('common.approved') @endif @if ($value->approve_status == 'C') @lang('hr.cancelled') @endif @lang('common.view') @endforeach @else @lang('hr.not_leaves_data') @endif @lang('hr.upload_document') @lang('hr.document_title') @lang('common.action') @if ($staffDetails->joining_letter != '') @lang('hr.joining_letter') @lang('common.download') @endif @if ($staffDetails->resume != '') @lang('hr.resume') @lang('common.download') @endif @if ($staffDetails->other_document != '') @lang('hr.other_documents') @lang('common.download') @endif @if (isset($staffDocumentsDetails)) @foreach ($staffDocumentsDetails as $key => $value) {{ $value->title }} @lang('common.download') @endforeach @endif {{-- Start Timeline Tab --}} @lang('common.add') @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 --}} @lang('common.delete') × @lang('common.are_you_sure_to_delete') @csrf @lang('common.cancel') @lang('common.delete') {{-- delete staff doc delete end --}} @lang('hr.upload_document') × {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'save_upload_document', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'name' => 'document_upload', ]) }} @lang('hr.title') * @lang('common.browse') @lang('common.cancel') @lang('common.save') {{ Form::close() }} @lang('common.add_timeline') × {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'staff_timeline_store', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'name' => 'document_upload', ]) }} @lang('common.title') * @lang('common.date') * @if ($errors->has('date_of_birth')) {{ $errors->first('date_of_birth') }} @endif @lang('common.description') * Cancel Save @endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js')
{{ $timeline->description }}