@extends('layouts/layoutMaster') @section('title', 'Salary Slip') @section('content')
{{ $company->billing_address }}
| Employee name: | {{ $employee->name }} |
| Employee no.: | {{ $employee->phone_no }} |
| Employee email: | {{ $employee->email }} |
| Pay Period: | {{ $monthName }} {{ $dataSalary->year }} |
| Paid Days | : {{ $daysInMonth }} |
| EARNINGS | AMOUNT | |
|---|---|---|
| Basic | {{ number_format($employee->salary,2) }} | |
| {{ $allounce->component_name }} | @if($allounce->status != 'Amount') @php $amount = ($dataSalary->basic_salary * $allounce->charge)/100; $totalGrossEarnings += $amount; @endphp{{ number_format($amount,2) }} | @else @php $totalGrossEarnings += $allounce->charge; @endphp{{ number_format($allounce->charge,2) }} | @endif
| DEDUCTIONS | AMOUNT | |
|---|---|---|
| {{ $deduct->component_name }} | @if($deduct->status != 'Amount') @php $amount = ($dataSalary->basic_salary * $deduct->charge)/100; $totalDeductions += $amount; @endphp{{ number_format($amount,2) }} | @else @php $totalDeductions += $deduct->charge; @endphp{{ number_format($deduct->charge,2) }} | @endif
| Gross Earnings | {{ number_format($totalGrossEarnings, 2) }} |
|---|
| Total Deductions | {{ number_format($totalDeductions, 2) }} |
|---|