{{ __('Employee Detail') }}
{{ !empty($payslip->employees) ? \Auth::user()->employeeIdFormat($payslip->employees->employee_id) : '' }}
{{ __('Basic Salary') }}
{{ !empty($payslip->basic_salary) ? \Auth::user()->priceFormat($payslip->basic_salary) : '-' }}
{{ __('Payroll Month') }}
{{ !empty($payslip->salary_month) ? \Auth::user()->dateFormat($payslip->salary_month) : '-' }}
@php
$allowances = json_decode($payslip->allowance);
@endphp
| {{ __('Title') }} |
{{ __('Type') }} |
{{ __('Amount') }} |
@foreach ($allowances as $allownace)
@php
$employess = \App\Models\Employee::find($allownace->employee_id);
$empallow = ($allownace->amount * $employess->salary) / 100;
@endphp
| {{ $allownace->title }} |
{{ ucfirst($allownace->type) }} |
@if ($allownace->type != 'percentage')
{{ \Auth::user()->priceFormat($allownace->amount) }}
|
@else
{{ $allownace->amount }}%
({{ \Auth::user()->priceFormat($empallow) }})
|
@endif
@endforeach
@php
$commissions = json_decode($payslip->commission);
@endphp
| {{ __('Title') }} |
{{ __('Type') }} |
{{ __('Amount') }} |
@foreach ($commissions as $commission)
@php
$employess = \App\Models\Employee::find($commission->employee_id);
$empcomm = ($commission->amount * $employess->salary) / 100;
@endphp
| {{ $commission->title }} |
{{ ucfirst($commission->type) }} |
@if ($commission->type != 'percentage')
{{ \Auth::user()->priceFormat($commission->amount) }}
|
@else
{{ $commission->amount }}%
({{ \Auth::user()->priceFormat($empcomm) }})
|
@endif
@endforeach
@php
$loans = json_decode($payslip->loan);
@endphp
| {{ __('Title') }} |
{{ __('Type') }} |
{{ __('Amount') }} |
@foreach ($loans as $loan)
@php
$employess = \App\Models\Employee::find($loan->employee_id);
$emploan = ($loan->amount * $employess->salary) / 100;
@endphp
| {{ $loan->title }} |
{{ ucfirst($loan->type) }} |
@if ($loan->type != 'percentage')
{{ \Auth::user()->priceFormat($loan->amount) }}
|
@else
{{ $loan->amount }}%
({{ \Auth::user()->priceFormat($emploan) }})
|
@endif
@endforeach
@php
$saturation_deductions = json_decode($payslip->saturation_deduction);
@endphp
| {{ __('Title') }} |
{{ __('Type') }} |
{{ __('Amount') }} |
@foreach ($saturation_deductions as $deduction)
@php
$employess = \App\Models\Employee::find($deduction->employee_id);
$empdeduction = ($deduction->amount * $employess->salary) / 100;
@endphp
| {{ $deduction->title }} |
{{ ucfirst($deduction->type) }} |
@if ($deduction->type != 'percentage')
{{ \Auth::user()->priceFormat($deduction->amount) }}
|
@else
{{ $deduction->amount }}%
({{ \Auth::user()->priceFormat($empdeduction) }})
|
@endif
@endforeach
@php
$other_payments = json_decode($payslip->other_payment);
@endphp
| {{ __('Title') }} |
{{ __('Type') }} |
{{ __('Amount') }} |
@foreach ($other_payments as $payment)
@php
$employess = \App\Models\Employee::find($payment->employee_id);
$emppayment = ($payment->amount * $employess->salary) / 100;
@endphp
| {{ $payment->title }} |
{{ ucfirst($payment->type) }} |
@if ($payment->type != 'percentage')
{{ \Auth::user()->priceFormat($payment->amount) }}
|
@else
{{ $payment->amount }}%
({{ \Auth::user()->priceFormat($emppayment) }})
|
@endif
@endforeach
@php
$overtimes = json_decode($payslip->overtime);
@endphp
| {{ __('Title') }} |
{{ __('Amount') }} |
@foreach ($overtimes as $overtime)
| {{ $overtime->title }} |
{{ \Auth::user()->priceFormat($overtime->rate) }}
|
@endforeach