+ Earning |
@php
$SalaryMaster = DB::table('salary_masters')->where('office_id', $office_id)->where('earning_deduction', 1)->select('amount_percent', 'header_name')->get();
$extra_earn = 0;
@endphp
@foreach($SalaryMaster as $SalaryM)
{{ $SalaryM->header_name }} |
@php
$other_earn = $net_salary * ($SalaryM->amount_percent / 100);
@endphp
{{ round($other_earn) }} |
@endforeach
@if($incentive)
Incentive |
{{ $incentive }} |
@php
$extra_earn += $incentive;
@endphp
@endif
@if($bonus)
Bonus |
{{ $bonus }} |
@php
$extra_earn += $bonus;
@endphp
@endif
|
- Deduction
|
@php
$SalaryMaster = DB::table('salary_masters')->where('office_id', $office_id)->where('earning_deduction', 2)->select('amount_percent', 'header_name')->get();
$extra_deduct = 0;
$abs_salary = round($deduction_salary);
$extra_deduct += $abs_salary;
@endphp
@if($SalaryMaster)
@foreach($SalaryMaster as $SalaryM)
@php
$other_deduct = $net_salary * ($SalaryM->amount_percent / 100);
$extra_deduct += $other_deduct;
@endphp
{{ $SalaryM->header_name }} |
{{ $other_deduct }} |
@endforeach
@endif
Leave Without Pay ({{ $absent - $leave }}) |
{{ $abs_salary }} |
|