@extends('layouts.app') @section('title', 'Staff') @section('breadcrumb') @endsection @section('content')

Staff Details

Back
{{-- ================= PERSONAL INFO ================= --}}
Personal Information
Name: {{ $staff->name }}
Email: {{ $staff->email ?? '-' }}
Phone: {{ $staff->phone }}
Address: {{ $staff->address ?? '-' }}
{{-- ================= EMPLOYMENT ================= --}}
Employment Details
Category: {{ $staff->category }}
Designation: {{ $staff->designation }}
Qualification: {{ $staff->qualification }}
Joining Date: {{ \Carbon\Carbon::parse($staff->joining_date)->format('d M Y') }}
{{-- ================= SALARY ================= --}}
Salary Details
@if($staff->salary)
Earnings
Basic: ₹{{ $staff->salary->basic }}
HRA: ₹{{ $staff->salary->hra }}
DA: ₹{{ $staff->salary->da }}
TA: ₹{{ $staff->salary->ta }}
Medical: ₹{{ $staff->salary->medical_allowance }}
Conveyance: ₹{{ $staff->salary->conveyance }}
Washing: ₹{{ $staff->salary->washing_allowance }}
Special: ₹{{ $staff->salary->special_allowance }}
Total Earnings: ₹{{ $staff->salary->total_earnings }}

Deductions
PF: ₹{{ $staff->salary->pf }}
ESI: ₹{{ $staff->salary->esi }}
P-Tax: ₹{{ $staff->salary->p_tax }}
TDS: ₹{{ $staff->salary->tds }}
Total Deductions: ₹{{ $staff->salary->total_deductions }}

Net Salary: ₹{{ $staff->salary->net_salary }}
Employer PF: ₹{{ $staff->salary->employer_pf }}
Financial Year: {{ $staff->salary->financialYear->label }}
CTC: ₹{{ $staff->salary->ctc }}
Employer ESI: ₹{{ $staff->salary->employer_esi }}
@else

Salary details not available.

@endif
{{-- ================= BANK ================= --}}
Bank Details
@if($staff->bankDetails)
Bank: {{ $staff->bankDetails->bank_name }}
Branch: {{ $staff->bankDetails->branch_name }}
IFSC: {{ $staff->bankDetails->ifsc_code }}
Account No: {{ $staff->bankDetails->acc_no }}
Account Holder: {{ $staff->bankDetails->acc_holder_name }}
@else

Bank details not available.

@endif
@endsection