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