@extends('layouts.default', ['appTopMenu' => true]) @section('title', 'Employee Details') @push('head') @endpush @php // echo $option; // $option="Update"; @endphp @section('content') @if(!empty($empid)) @php // $option="Update"; $qdata=[]; @endphp @else @php // $option="New"; // session()->put('_old_input', []); $qdata=[]; @endphp @endif @if(!empty($empDetailsData)) @if(count($empDetailsData)>0) @foreach($empDetailsData as $item) @php $data["id"]=$item->id; $data["employeeId"]=$item->user_code; $data["employeeName"]=$item->name; $data["mobile"]=$item->mobile; $data["email"]=$item->email; $data["relation"]=$item->relation; $data["employeeRelName"]=$item->relation_name; if($item->dob!='') $data["dob"]=date('d/m/Y',strtotime($item->dob)); else $data["dob"]=''; $data["gender"]=$item->gender; $data["religion"]=$item->religion; $data["category"]=$item->category; $data["hyes"]=$item->handicap; $data["pin"]=$item->c_pincode; $data["address"]=$item->c_address; $data["state"]=$item->c_state_code; $data["district"]=$item->c_district_code; $data["tehsil"]=$item->c_subdistrict_code; $data["village"]=$item->c_village_code; $data["ppin"]=$item->p_pincode; $data["paddress"]=$item->p_address; $data["pstate"]=$item->p_state_code; $data["pdistrict"]=$item->p_district_code; $data["ptehsil"]=$item->p_subdistrict_code; $data["pvillage"]=$item->p_village_code; if($item->join_date!='') $data["jdate"]=date('d/m/Y',strtotime($item->join_date)); else $data["jdate"]=''; $data["recruit_mode"]=$item->rec_mode; $data["status"]=$item->rec_status; if($item->confirm_date!='') $data["cdate"]=date('d/m/Y',strtotime($item->confirm_date)); else $data["cdate"]=''; $data["e_contact"]=$item->emergency_contact_no; $data["e_address"]=$item->emergency_contact_address; $data["bank_ac"]=$item->bank_ac_no; $data["bank_name"]=$item->bank_name; $data["ifsc"]=$item->ifsc; $data["pran"]=$item->pran; $data["pan"]=$item->pan; $data["aadhaar"]=$item->aadhaar; $data["imageName"]=$item->imageName; @endphp @endforeach @if(!empty($qualificationCurrData)) @if(count($qualificationCurrData)>0) @foreach($qualificationCurrData as $item1) @php $qdata[]=$item1->qualification_id; @endphp @endforeach @endif @endif @php session()->put('_old_input', $data); @endphp @endif @endif @php /*use App\Http\Controllers\Hrms\DaCounterController; echo $da = DaCounterController::get_da(); DaCounterController::update_da($da);*/ @endphp @if(Session::has('error')) {{Session::get('error')}} @endif @csrf Establisment @foreach ($establishmentData as $key => $value) {{ $value }} @endforeach @error('estb_code') {{ $message }} @enderror Type of User @foreach ($userTypeData as $key => $value) {{ $value }} @endforeach @error('user_type') {{ $message }} @enderror @if($option=="Update") Select User @error('user') {{ $message }} @enderror Get @endif Basic Details User ID* @error('employeeId') {{ $message }} @enderror User Name* @error('employeeName') {{ $message }} @enderror Gender* Male Female Other @error('gender') {{ $message }} @enderror Relation @foreach ($relation as $key => $value) {{ $value }} @endforeach Name Birth Date* @error('dob') {{ $message }} @enderror Religion @foreach ($religion as $key => $value) {{ $value }} @endforeach Category @foreach ($category as $key => $value) {{ $value }} @endforeach Is Handicap Yes No Mobile Number* @error('mobile') {{ $message }} @enderror Email ID* @error('email') {{ $message }} @enderror AADHAAR NO. Qualification @foreach ($qualificationData as $key => $value) {{ $value }} @endforeach @php if(old("imageName")!='') $url=('/images/'.old("imageName")); else $url=('/images/nophoto.png'); @endphp Choose Picture Current Address Pincode Address State @foreach ($states as $key => $value) {{ $value }} @endforeach District Tehsil Village Permanent Address Pincode Address State @foreach ($states as $key => $value) {{ $value }} @endforeach District Tehsil Village Other Details Joining Date Mode of Recruitment Exam Direct Recruitmen Contract Anukampa Other Status Probation Confirmed Date of Confirmation PRAN NO. PAN CARD NO. Bank A/c No. Bank Name and Branch IFSC CODE Emergancy Contact No. Emergancy Contact Address @php if($option=="Update"){ @endphp Update @php } else { @endphp Save @php } @endphp @endsection @push('scripts')