@extends('layouts.dashboard') @section('content')

Employee Salary Slip

{{-- Header --}}
@csrf
@if(isset($employee))
{{-- Dynamic Payslip Header --}}
@if(isset(auth()->user()->profile_image)) User Image @endif

{{ auth()->user()->name }}

Office No. 16, B3 Cerebrum IT Park,

{{ auth()->user()->address }}

{{-- Employee Info --}}
Payslip For The Month Of {{ $selectedMonth->format('F Y') }}
Emp Code {{ $employee->employee_id ?? 'CC002' }} Emp Name {{ $employee->name ?? 'Pulin Prakash Mishra' }}
Date Of Joining {{ \Carbon\Carbon::parse($employee->doj ?? '1986-12-01')->format('d-M-Y') }} Designation {{ $employee->designation->name }} PF No. 23212134
Date Of Birth {{ \Carbon\Carbon::parse($employee->dob)->format('d-M-Y') }} Location {{ $employee->location ?? 'Pune' }} PAN No. {{ $employee->pan ?? 'BBTPM0755R' }}
UAN {{ $employee->uan ?? '100282121743' }} Bank A/c No. 45433323 EPS No. 121212
{{-- Monthly Salary Details --}}
Monthly Salary Details
Earning (Rs) Amount Deductions (Rs) Amount
Basic Salary {{ isset($emp_salary) ? number_format($emp_salary->monthly_basic_salary, 2) : 0 }} PF Contribution {{ isset($emp_salary) ? number_format($emp_salary->pf_contribution, 2) : 0 }}
HRA {{ isset($emp_salary) ? number_format($emp_salary->monthly_hra, 2) : 0 }} TDS {{ isset($emp_salary) ? number_format($emp_salary->tds, 2) : 0 }}
Special Allowance {{ isset($emp_salary) ? number_format($emp_salary->monthly_special_allowance, 2) : 0 }} LWP {{ $employee->lwp }}
Medical Allowance {{ isset($emp_salary) ? number_format($emp_salary->monthly_medical_allowance, 2) : 0 }}
Total {{ isset($emp_salary) ? number_format( ($emp_salary->monthly_basic_salary ?? 0) + ($emp_salary->monthly_hra ?? 0) + ($emp_salary->monthly_special_allowance ?? 0) + ($emp_salary->monthly_medical_allowance ?? 0), 2) : 0 }} Total Deductions {{ number_format(($emp_salary->pf_contribution ?? 0) + ($emp_salary->tds ?? 0), 2) }}
{{-- Net Pay and In Words --}} @php $totalEarnings = $emp_salary->monthly_total ?? 0; $totalDeductions = ($emp_salary->pf_contribution ?? 0) + ($emp_salary->tds ?? 0); $netPay = $totalEarnings - $totalDeductions; @endphp
Net Pay: Rs. {{ number_format($netPay, 2) }}
In Words:

Please send your queries to careers@cloudcatch.co

@endif
@endsection @push('scripts') @endpush