@extends('admin.layouts.app') @section('title', get_setting('site_name').' | Salary Certificate') @section('content') @include('admin.certificate.partials.styles')

{{ __('Salary Certificate') }}

{{ __('Generate a printable salary certificate for an employee.') }}

@if (session()->has('error'))
{{ session('error') }}
@endif
{{ __('Generate Certificate') }}
@if($certificate_show == 1 && $employee && $salary)

{{ __('Salary Certificate') }}

{{ __('This is to certify that') }} {{ $employee->user?->name }} {{ __('has been working in') }} {{ get_setting('site_name') }} {{ __('since') }} {{ optional($employee->joing_date)->format('d-m-Y') ?? '—' }}. {{ __('Employee ID') }}: {{ $employee->user_id }}. {{ __('Currently serving as') }} {{ $employee->designation?->name ?? '—' }}, {{ __('Department of') }} {{ $employee->department?->name ?? '—' }}. {{ __('Salary breakup for') }} {{ date('F', mktime(0, 0, 0, request('month', $filterMonth), 1)) }} {{ request('year', $filterYear) }}:

{{ __('Salary Breakup') }} {{ __('Amount') }} {{ __('Deduction Head') }} {{ __('Amount') }}
{{ __('Basic') }}{{ number_format((float) $salary->basic_salary, 2) }}
{{ __('Housing') }}{{ number_format((float) $salary->house_rent, 2) }}
{{ __('Conveyance Allowance') }}{{ number_format((float) $salary->conveyance, 2) }}
{{ __('Medical Allowance') }}{{ number_format((float) $salary->medical, 2) }}
{{ __('Others') }}{{ number_format((float) $salary->Others, 2) }}

{{ __('In words') }}: {{ Inwords($salary->gross_salary) }}

{{ __('Earnings') }}:{{ number_format((float) $salary->gross_salary, 2) }}
{{ __('Deductions') }}:{{ number_format((float) $salary->provident_fund, 2) }}
{{ __('Net Remuneration') }}:{{ number_format((float) $salary->gross_salary, 2) }}

{{ __('We are issuing this letter on the specific request of our employee without accepting any liability on behalf of this letter or part of this letter on our company.') }}

{{ __('Thanks and Regards') }},
{{ __('Signature & Stamp') }}
{{ __('Date') }}: {{ date('d-m-Y') }}
@elseif(request()->filled('employee_id'))
{{ __('Select employee, month, and year, then click Generate.') }}
@endif
@endsection