@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 }} | @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; $totalDeducations += $amount; @endphp{{ number_format($amount,2) }} | @else @php $totalDeducations += $deduct->charge; @endphp{{ number_format($deduct->charge,2) }} | @endif
| Gross Earnings | {{ number_format($totalGrossEarnings, 2) }} |
|---|
| Total Deductions | {{ number_format($totalDeducations, 2) }} |
|---|