@extends('layouts/layoutMaster') @section('title', 'Salary Slip') @section('vendor-style') @vite('resources/assets/vendor/libs/flatpickr/flatpickr.scss') @endsection @section('page-style') @vite('resources/assets/vendor/scss/pages/app-invoice.scss') @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/flatpickr/flatpickr.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js' ]) @endsection {{-- @section('page-script') @vite([ 'resources/assets/js/offcanvas-add-payment.js', 'resources/assets/js/offcanvas-send-invoice.js' ]) @endsection --}} @section('content')
{{ $company->billing_address }}
Employee name: {{ $employee->name }}
Employee no.: {{ $employee->phone_no }}
Employee email: {{ $employee->email }}
Pay Period: {{ $dataSalary->year }} {{ $monthName }}
| EARNINGS | AMOUNT |
|---|---|
| Basic | {{ number_format($dataSalary->basic_salary,2) }} |
| {{ $allounce->component_name }} | @php $totalGrossEarnings += $allounce->calculated_amount; @endphp{{ number_format($allounce->calculated_amount, 2) }} |
| Other | @php $totalGrossEarnings += $otherAllowance; // <-- ADD this line to include 'Other' in total @endphp{{ number_format($otherAllowance, 2) }} |
| DEDUCTIONS | AMOUNT |
|---|---|
| {{ $deduct->component_name }} | @php $totalDeducations += $deduct->calculated_amount; @endphp{{ number_format($deduct->calculated_amount,2) }} |
| Gross Earnings | {{ number_format($totalGrossEarnings, 2) }} |
|---|
| Total Deductions | {{ number_format($totalDeducations, 2) }} |
|---|