@extends('backEnd.layouts.master') @section('title', 'Employee Profile') @section('css') @endsection @section('content')

Employee Profile

Back Edit Profile
{{ substr($employee->name, 0, 1) }}
{{ $employee->name }}

{{ $employee->designation ?? 'No Designation' }}

@if($employee->status == 'active') Active Employee @elseif($employee->status == 'inactive') Inactive @else Terminated @endif
  • Employee ID {{ $employee->employee_id }}
  • Department {{ $employee->department ?? 'N/A' }}
  • Phone {{ $employee->phone ?? 'N/A' }}
  • Email {{ $employee->email }}
  • Joined {{ $employee->joining_date->format('d M, Y') }}
ATTENDANCE
{{ $employee->attendances->where('status','present')->count() }} Days
LEAVES TAKEN
{{ $employee->leaves->where('status','approved')->sum('total_days') }} Days
BASIC SALARY
৳{{ number_format($employee->basic_salary) }}
General Information
Full Name
{{ $employee->name }}
Linked User Account
{{ $employee->user->name ?? 'Not Linked' }}
National ID (NID)
{{ $employee->nid ?? 'N/A' }}
Address
{{ $employee->address ?? 'N/A' }}
Banking Details
Bank Name
{{ $employee->bank_name ?? 'N/A' }}
Account Number
{{ $employee->bank_account ?? 'N/A' }}
@forelse($employee->attendances as $attn) @empty @endforelse
Date Check In Check Out Status
{{ $attn->attendance_date->format('d M, Y') }} {{ $attn->check_in ?? '--:--' }} {{ $attn->check_out ?? '--:--' }} @if($attn->status == 'present') Present @elseif($attn->status == 'late') Late @elseif($attn->status == 'absent') Absent @else {{ ucfirst($attn->status) }} @endif
No attendance data.
Salary Slips
@forelse($employee->salaries as $salary) @empty @endforelse
Month Work Days Net Salary Status
{{ $salary->salary_month }} {{ $salary->working_days }} (P:{{ $salary->present_days }}) ৳{{ number_format($salary->net_salary) }} {{ ucfirst($salary->status) }}
No salary data.
Payment History
@forelse($employee->salaryPayments as $payment) @empty @endforelse
ID Date Amount Month
#{{ $payment->payment_id }} {{ $payment->payment_date->format('d M, Y') }} ৳{{ number_format($payment->amount) }} {{ $payment->payment_month }}
No payment history.
@forelse($employee->leaves as $leave) @empty @endforelse
Type Date Range Days Status
{{ ucfirst($leave->leave_type) }} {{ $leave->start_date->format('d M') }} - {{ $leave->end_date->format('d M, Y') }} {{ $leave->total_days }} @if($leave->status == 'approved') Approved @elseif($leave->status == 'rejected') Rejected @else Pending @endif
No leave history.
@endsection