@extends('layouts.default', ['appTopMenu' => true]) @section('title', 'Profile Page') @push('head') @endpush @section('content') @php $qdata=[]; @endphp @if(count($empPostingCurrentdata)>0) @foreach($empPostingCurrentdata as $item) @php $presentPost=$item->post_name; $presentSection=$item->section_name; @endphp @endforeach @else @php $presentPost=''; $presentSection=''; @endphp @endif @if(!empty($qualificationCurrData)) @if(count($qualificationCurrData)>0) @foreach($qualificationCurrData as $item1) @php $qdata[]=$item1->qualification_name; @endphp @endforeach @endif @endif @if(count($empDetailsData)>0) @foreach($empDetailsData as $item) @php $c_state_name = ucwords(strtolower(App\Models\Hrms\master_state::where('state_code','=',$item->c_state_code)->value('state_name_english'))); $c_district_name = ucwords(strtolower(App\Models\Hrms\master_district::where('district_code','=',$item->c_district_code)->value('district_name_english'))); $c_tehsil_name = ucwords(strtolower(App\Models\Hrms\master_sub_district::where('subdistrict_code','=',$item->c_subdistrict_code)->value('subdistrict_name_english'))); $c_village_name = ucwords(strtolower(App\Models\Hrms\master_village::where('village_code','=',$item->c_village_code)->value('village_name_english'))); $p_state_name = ucwords(strtolower(App\Models\Hrms\master_state::where('state_code','=',$item->p_state_code)->value('state_name_english'))); $p_district_name = ucwords(strtolower(App\Models\Hrms\master_district::where('district_code','=',$item->p_district_code)->value('district_name_english'))); $p_tehsil_name = ucwords(strtolower(App\Models\Hrms\master_sub_district::where('subdistrict_code','=',$item->p_subdistrict_code)->value('subdistrict_name_english'))); $p_village_name = ucwords(strtolower(App\Models\Hrms\master_village::where('village_code','=',$item->p_village_code)->value('village_name_english'))); @endphp
@php if($item->user_type == 1) echo 'HON\'BLE '.strtoupper($item->name).' : PROFILE'; else echo strtoupper($item->name).' : PROFILE'; @endphp
 
@php if($item->imageName !='') $url=('/images/'.$item->imageName); else $url=('/images/nophoto.png'); @endphp
@php if($item->user_type == 1) echo 'HON\'BLE '.strtoupper($item->name); else echo strtoupper($item->name); @endphp
{{ $presentPost }}
{{ $presentSection }}
{{ $item->mobile }}
{{ $item->email }}
{{ $item->c_address}} @if($item->c_village_code!='' && $item->c_village_code!='0')
Village: {{ $c_village_name }} @endif @if($item->c_subdistrict_code!='' && $item->c_subdistrict_code!='0')
Tehsil: {{ $c_tehsil_name }} @endif @if($item->c_district_code!='' && $item->c_district_code!='0')
District: {{ $c_district_name }} @endif @if($item->c_state_code!='' && $item->c_state_code!='0')
State: {{ $c_state_name }} @endif @if($item->c_pincode!='' && $item->c_pincode!='0')
Pincode: {{ $item->c_pincode }} @endif
General Information
Employee ID
{{ $item->user_code }}
@if($item->relation_name != '')
{{ ($item->relation==1 || $item->relation==2) ? 'Father' : ($item->relation==3 ? 'Husband' : 'Father/Husband')}} Name
{{ $item->relation_name }}
@endif @if($item->gender != '')
Gender
@if($item->gender=='1') {{ 'Male'}} @elseif($item->gender=='2') {{ 'Female'}} @elseif($item->gender=='3') {{ 'Other'}} @endif
@endif @if($item->dob != '')
Birth Date
@if($item->dob!='') {{ \Carbon\Carbon::parse($item->dob)->format('d/m/Y') }} @endif
@endif @php @endphp
Qualification
{{ implode(', ',$qdata) }}
@if($item->handicap != '')
Is Handicapped
{{ $item->handicap=='Y' ? 'Yes' : 'No' }}
@endif @if($item->religion != '')
Religion
@if($item->religion=='1') {{ 'Hindu'}} @elseif($item->religion=='2') {{ 'Muslim'}} @elseif($item->religion=='3') {{ 'Sikh'}} @endif
@endif @if($item->category != '')
Category
@if($item->category=='1') {{ 'General'}} @elseif($item->category=='2') {{ 'Schedule Caste'}} @elseif($item->category=='3') {{ 'Schedule Tribe'}} @elseif($item->category=='4') {{ 'OBC'}} @endif
@endif @if($item->c_address != '' || $item->c_pincode != '' || $item->c_state_code != '' || $item->c_district_code != '' || $item->c_subdistrict_code != '' || $item->c_village_code != '')
Current Address
{{ $item->c_address}} @if($item->c_village_code!='') , Village: {{ $c_village_name }} @endif @if($item->c_subdistrict_code!='') , Tehsil: {{ $c_tehsil_name }} @endif @if($item->c_district_code!='') , District: {{ $c_district_name }} @endif @if($item->c_state_code!='') , State: {{ $c_state_name }} @endif @if($item->c_pincode!='') , Pincode: {{ $item->c_pincode }} @endif
@endif @if($item->p_address != '' || $item->p_pincode != '' || $item->p_state_code != '' || $item->p_district_code != '' || $item->p_subdistrict_code != '' || $item->p_village_code != '')
Permanent Address
{{ $item->p_address}} @if($item->p_village_code!='') , Village: {{ $p_village_name }} @endif @if($item->p_subdistrict_code!='') , Tehsil: {{ $p_tehsil_name }} @endif @if($item->p_district_code!='') , District: {{ $p_district_name }} @endif @if($item->p_state_code!='') , State: {{ $p_state_name }} @endif @if($item->p_pincode!='') {{ ' Pincode: '.$item->p_pincode }} @endif
@endif
@if($item->join_date!='' || $item->rec_mode!='' || $item->rec_status!='' || $item->confirm_date!='')
Joining Information
@if($item->join_date!='')
Joining Date
@if($item->join_date!='') {{ \Carbon\Carbon::parse($item->join_date)->format('d/m/Y') }} @endif
@endif @if($item->rec_mode!='')
Mode
@if($item->rec_mode=='E') {{ 'Exam'}} @elseif($item->rec_mode=='D') {{ 'Direct Recruitment'}} @elseif($item->rec_mode=='C') {{ 'Contract'}} @elseif($item->rec_mode=='A') {{ 'Anukampa'}} @elseif($item->rec_mode=='O') {{ 'Other'}} @endif
@endif @if($item->rec_status!='')
Probation/Confirmed
@if($item->rec_status=='P') {{ 'Probation'}} @elseif($item->rec_status=='C') {{ 'Confirmed'}} @endif
@endif @if($item->confirm_date!='')
Date of Confirmation
@if($item->confirm_date!='') {{ \Carbon\Carbon::parse($item->confirm_date)->format('d/m/Y') }} @endif
@endif
@endif @if($item->aadhaar!='' || $item->pan!='' || $item->bank_ac_no!='' || $item->pran!='' || $item->bank_name!='' || $item->ifsc!='')
Bank details & Other Information
@if($item->bank_ac_no!='')
Bank A/c No.
{{ $item->bank_ac_no }}
@endif @if($item->bank_name!='')
Bank Name
{{ $item->bank_name }}
@endif @if($item->ifsc!='')
IFSC Code
{{ $item->ifsc }}
@endif @if($item->aadhaar!='')
Aadhaar No.
{{ $item->aadhaar }}
@endif @if($item->pan!='')
PAN Number
{{ $item->pan }}
@endif @if($item->pran!='')
PRAN No.
{{ $item->pran }}
@endif
@endif @if(count($empTransferdata)>0)
Transfer Details
@foreach($empTransferdata as $transferdata) @endforeach
SN Establishment Designation From Date To Date Order No. & Date Remarks
{{$loop->iteration}} {{ $transferdata->est_name }} {{ $transferdata->desig_name }} @if($transferdata->join_date!='') {{ \Carbon\Carbon::parse($transferdata->join_date)->format('d/m/Y') }} @endif @if($transferdata->releaving_date!='') {{ \Carbon\Carbon::parse($transferdata->releaving_date)->format('d/m/Y') }} @endif {{ $transferdata->order_no }} @if($transferdata->order_date!='') {{ 'dt.'}} {{ \Carbon\Carbon::parse($transferdata->order_date)->format('d/m/Y') }} @endif {{ $transferdata->remark }}
@endif @if(count($empPostingdata)>0)
Posting Details
@foreach($empPostingdata as $postdata) @endforeach
SN Establishment Post Section From Date To Date Order No. & Date Remarks
{{$loop->iteration}} {{ $postdata->est_name }} {{ $postdata->post_name }} {{ $postdata->section_name }} @if($postdata->join_date!='') {{ \Carbon\Carbon::parse($postdata->join_date)->format('d/m/Y') }} @endif @if($postdata->releaving_date!='') {{ \Carbon\Carbon::parse($postdata->releaving_date)->format('d/m/Y') }} @endif {{ $postdata->order_no }} @if($postdata->order_date!='') {{ 'dt.'}} {{ \Carbon\Carbon::parse($postdata->order_date)->format('d/m/Y') }} @endif {{ $postdata->remark }}
@endif
@endforeach @else

Employee is Empty

@endif @endsection