{{-- Header --}}
@if ($schoolSetting['horizontal_logo'] ?? '') @else @endif
{{ $schoolSetting['school_name'] }}
{{ $schoolSetting['school_address'] }}
Salary Slip For The Month
{{ $salary->title }}

@php $lwp = 0; $lwp_amount = 0; $allowance = 0; $deduction = 0; @endphp @if ($salary->paid_leaves < $total_leaves && $allow_leaves) @php $lwp = number_format($total_leaves - $salary->paid_leaves, 2); @endphp @endif
{{-- Employee info. --}}
Employee Summary
Employee Name : {{ $salary->staff->user->full_name }}
Employee ID : {{ $salary->staff->id }}
Pay Month : {{ $salary->title }}
Date : {{ format_date($salary->date) }}
{{-- Salary --}}
{{ number_format($salary->amount, 2) }}

Employee Net Salary


Paid Days : {{ $days - $lwp }}
LWP Days : {{ $lwp }}
{{-- Salary details --}}
Earnings Amount Deductions Amount
Basic {{ number_format($salary->basic_salary, 2) }} Leave Without Pay
@if ($lwp) @php $lwp_amount = ($salary->basic_salary / 30) * $lwp; @endphp {{ number_format($lwp_amount, 2) }} @else 00.00 @endif
@foreach ($salary->staff_payroll as $payroll) @if ($payroll->payroll_setting->type == 'allowance')
{{ $payroll->payroll_setting->name }} {{ $payroll->percentage ? '('.$payroll->percentage.' %)' : '' }}
@if ($payroll->amount) {{ number_format($payroll->amount, 2) }} @php $allowance += $payroll->amount; @endphp @else @php $allowance += ($salary->basic_salary * $payroll->percentage) / 100; @endphp {{ number_format(($salary->basic_salary * $payroll->percentage) / 100, 2) }} @endif
@endif @endforeach
@foreach ($salary->staff_payroll as $payroll) @if ($payroll->payroll_setting->type == 'deduction')
{{ $payroll->payroll_setting->name }} {{ $payroll->percentage ? '('.$payroll->percentage.' %)' : '' }}
@if ($payroll->amount) {{ number_format($payroll->amount, 2) }} @php $deduction += $payroll->amount; @endphp @else @php $deduction += ($salary->basic_salary * $payroll->percentage) / 100; @endphp {{ number_format(($salary->basic_salary * $payroll->percentage) / 100, 2) }} @endif
@endif @endforeach
Other Allowances @if ($salary->amount > ($salary->basic_salary + $allowance - $lwp_amount - $deduction)) {{ number_format($salary->amount - ($salary->basic_salary + $allowance - $deduction - $lwp_amount), 2) }} @php $allowance += $salary->amount - ($salary->basic_salary + $allowance - $deduction - $lwp_amount); @endphp @else {{ number_format(0,2) }} @endif Other Deductions @if ($salary->amount < ($salary->basic_salary + $allowance - $lwp_amount - $deduction)) {{ number_format(($salary->basic_salary + $allowance - $deduction - $lwp_amount) - $salary->amount, 2) }} @php $deduction += ($salary->basic_salary + $allowance - $deduction - $lwp_amount) - $salary->amount; @endphp @else {{ number_format(0,2) }} @endif
Gross Earnings Total Deduction
Total Net Payable
Gross Earnings - Total Deductions
{{ number_format($salary->amount, 2) }}