@php $logoPath = ''; if (!empty($organisation->logo)) { $path = 'storage/app/public/' . ltrim(str_replace('storage/', '', $organisation->logo), '/'); $fullPath = base_path($path); if (file_exists($fullPath)) { $logoPath = $fullPath; } } @endphp @if($logoPath)
Watermark
@endif
SALARY SLIP No.: {{ $payroll->payroll_no }}
@if($logoPath) @endif EMPLOYEE NAME: {{ $payroll->employee->first_name . ' ' . $payroll->employee->other_name . ' ' . $payroll->employee->last_name }} PAYROLL DATE: {{ $payroll->payroll_date }}
POSITION: {{ $payroll->employee->designation->designation_name ?? '' }} EMPLOYEE No.: {{ $payroll->employee->employee_code ?? $payroll->employee->id }}
@if($payroll->allowances->isNotEmpty()) @foreach($payroll->allowances as $allowance) @endforeach @endif @if($payroll->deductions->isNotEmpty()) @foreach($payroll->deductions as $deduction) @endforeach @endif
DESCRIPTION BAL - OUT AMOUNT
Basic Salary {{ number_format($payroll->basic_salary, 2) }}
Incomes
{{ ucfirst(strtolower($allowance->allowance->allowance_type->name)) }} {{ number_format($allowance->amount, 2) }}
Total Incomes {{ number_format($payroll->total_allowances, 2) }}
Deductions
{{ ucfirst(strtolower($deduction->deduction->deduction_type->name)) }} {{ number_format($deduction->amount, 2) }}
Total Deductions {{ number_format($payroll->total_deductions, 2) }}
AMOUNT PAID/DUE {{ number_format($payroll->net_pay, 2) }}

Prepared by

{{ $payroll->prepare_by->first_name ?? '' }} {{ $payroll->prepare_by->other_name ?? '' }} {{ $payroll->prepare_by->last_name ?? '' }}

Approved by

{{ $payroll->approved_by->first_name ?? '' }}