@extends('layouts.default') @section('title', 'Profile Page') @push('head') @endpush @section('content') @php $cntr=0; @endphp @if(count($empDetailsData)>0) @foreach($empDetailsData as $item) @php $cntr++; @endphp @if($cntr>1) @break; @endif @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 echo strtoupper($item->user_name).' : PROFILE'; @endphp
 
@php if($item->photo !='') $url=('/images/'.$item->photo); else $url=('/images/nophoto.png'); @endphp
@php echo strtoupper($item->user_name); @endphp
{{ $item->mobile }}
{{ $item->email }}
{{ $item->address}} @if($item->village_name_english!='' && $item->village_name_english!='0')
Village: {{ $item->village_name_english }} @endif @if($item->subdistrict_name_english!='' && $item->subdistrict_name_english!='0')
Tehsil: {{ $item->subdistrict_name_english }} @endif @if($item->district_name_english!='' && $item->district_name_english!='0')
District: {{ $item->district_name_english }} @endif @if($item->state_name_english!='' && $item->state_name_english!='0')
State: {{ $item->state_name_english }} @endif @if($item->pincode!='' && $item->pincode!='0')
Pincode: {{ $item->pincode }} @endif
General Information
@if($item->enrolment_number != '')
Enrolment Number
{{ $item->enrolment_number }}
@endif @if($item->enrolment_date != '')
Enrolment Date
@if($item->enrolment_date!='') {{ \Carbon\Carbon::parse($item->enrolment_date)->format('d/m/Y') }} @endif
@endif @if($item->father_name != '')
Father Name
{{ $item->father_name }}
@endif @if($item->date_of_birth != '')
Birth Date
@if($item->date_of_birth!='') {{ \Carbon\Carbon::parse($item->date_of_birth)->format('d/m/Y') }} @endif
@endif @php @endphp
@endforeach @else

Employee is Empty

@endif @endsection