@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)) @endif @endif
{{ $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)) : '-' }}
@if($salary->bonus > 0) @endif
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) }}
@foreach($salary->salaryDeductions as $deduction) @endforeach @php $manual = $salary->deductions - $salary->salaryDeductions->sum('amount'); @endphp @if($manual > 0) @endif
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) }}
TOTAL NET PAYABLE
{{ $settings->currency_symbol ?? '₹' }} {{ number_format($salary->net_salary, 2) }}
@php $f = new NumberFormatter('en_IN', NumberFormatter::SPELLOUT); @endphp
{{ ucwords($f->format($salary->net_salary)) }} Only
Employee Signature
Authorized Signatory