@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
@error('estb_code') {{ $message }} @enderror
@error('user_type') {{ $message }} @enderror
@if($option=="Update")
@error('user') {{ $message }} @enderror
@endif
Basic Details
@error('employeeId') {{ $message }} @enderror
@error('employeeName') {{ $message }} @enderror
@error('gender') {{ $message }} @enderror
@error('dob') {{ $message }} @enderror
@error('mobile') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@php if(old("imageName")!='') $url=('/images/'.old("imageName")); else $url=('/images/nophoto.png'); @endphp
Choose Picture
Current Address
Permanent Address
@php if($option=="Update"){ @endphp @php } else { @endphp @php } @endphp
@endsection @push('scripts')