@extends('layouts.app') @section('content') @if ($message = Session::get('success')) @endif @if ($errors->any())
@endif
Profile Image
@if ($details)
{{ $details->name ?? 'No details available' }}

{{ $details->designation->title ?? 'No designation available' }}

@else
No details available

No designation available

@endif
  • Email
    {{ !empty($details->email) ? $details->email : 'Email not provided' }}
  • Phone
    {{ !empty($details->phone) ? $details->phone : 'Phone number not provided' }}
  • Gender
    {{ !empty($details->gender) ? $details->gender : 'Gender not provided' }}
{{-- Basic Details Form --}}
Employee Code
{{ $details->employee_code ?? 'N/A' }}
Gender
{{ $details->gender ?? 'N/A' }}
Date of Birth
{{ isset($details->dob) ? date('d M, Y', strtotime($details->dob)) : 'N/A' }}
UIDAI (Aadhar)
{{ $details->uidai ?? 'N/A' }}
PAN no
{{ $details->pan ?? 'N/A' }}
Experience
{{ $details->experience ?? 'N/A' }} Years
Joining Date
{{ isset($details->joining_date) ? date('d M, Y', strtotime($details->joining_date)) : 'N/A' }}
Address
{{ !empty($details->address) ? $details->address . ', ' . $details->city . ' - ' . $details->pincode : 'N/A' }}
{{-- Change Password Form --}}
{{ Form::open(['url' => '/employee/change_password']) }} @csrf {{ Form::hidden('employee_id', $details ? $details->id : '') }}
{{ Form::password('current_password', ['class' => 'form-control', 'required' => '', 'placeholder' => 'Current Password']) }}
{{ Form::password('new_password', ['class' => 'form-control', 'required' => '', 'placeholder' => 'New Password']) }}
{{ Form::password('confirm_password', ['class' => 'form-control', 'required' => '', 'placeholder' => 'Confirm Password']) }}
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }} {{ Form::close() }}
{{-- Profile Picture Form --}}
{{ Form::open(['url' => '/employee/update_profile_image', 'enctype' => 'multipart/form-data']) }} @csrf {{ Form::hidden('employee_id', $details ? $details->id : '') }}
{{ Form::file('profile_image', ['class' => 'form-control', 'required' => '']) }}
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }} {{ Form::close() }}
@stop @section('scripting') @endsection