|
@if($settings->company_logo)
@php
$path = storage_path('app/public/' . $settings->company_logo);
if (file_exists($path)) {
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
}
@endphp
@if(isset($base64))
{{ $settings->company_name ?: 'INFO CRM' }}
{{ $settings->address }}
{{ $settings->contact_email }} | {{ $settings->contact_number }} |
PAYSLIP
{{ date("F Y", mktime(0, 0, 0, $salary->month, 10, $salary->year)) }}
|
| Employee Details | |||
|---|---|---|---|
| Name | {{ $salary->employee->name }} | Payslip No. | #PS-{{ $salary->id }} |
| Designation | {{ $salary->employee->designation }} | Payment Date | {{ $salary->payment_date ? date('d M Y', strtotime($salary->payment_date)) : '-' }} |
| Earnings Description | Amount |
|---|---|
| Basic Salary | {{ $settings->currency_symbol ?? '₹' }} {{ number_format($salary->base_salary, 2) }} |
| Bonus / Incentives | {{ $settings->currency_symbol ?? '₹' }} {{ number_format($salary->bonus, 2) }} |
| Gross Earnings | {{ $settings->currency_symbol ?? '₹' }} {{ number_format($salary->base_salary + $salary->bonus, 2) }} |
| Deductions Description | Amount |
|---|---|
| {{ $deduction->name }} | {{ $settings->currency_symbol ?? '₹' }} {{ number_format($deduction->amount, 2) }} |
| Other Deductions | {{ $settings->currency_symbol ?? '₹' }} {{ number_format($manual, 2) }} |
| Total Deductions | {{ $settings->currency_symbol ?? '₹' }} {{ number_format($salary->deductions, 2) }} |
|
Employee Signature
|
Authorized Signatory
|