| {{trans('file.Earnings')}} |
| {{trans('file.Description')}} |
{{trans('file.Amount')}} |
@php
if ($payment_type == 'Monthly')
{
$total_earnings = $basic_salary;
}
else
{
$total_earnings = $hours_amount;
}
@endphp
@if($payment_type == 'Monthly')
| {{__('Basic Salary')}} |
{{$basic_salary}} |
@else
{{__('Basic Salary')}} ({{__('Total')}}) |
{{$total_earnings}} |
@endif
@if($allowances)
@foreach($allowances as $allowance)
| {{$allowance['allowance_title']}} |
{{$allowance['allowance_amount']}} |
@php
$total_earnings = $total_earnings + $allowance['allowance_amount'] ;
@endphp
@endforeach
@endif
@if($commissions)
@foreach($commissions as $commission)
| {{$commission['commission_title']}} |
{{$commission['commission_amount']}} |
@php
$total_earnings = $total_earnings + $commission['commission_amount'] ;
@endphp
@endforeach
@endif
@if($other_payments)
@foreach($other_payments as $other_payment)
| {{$other_payment['other_payment_title']}} |
{{$other_payment['other_payment_amount']}} |
@php
$total_earnings = $total_earnings + $other_payment['other_payment_amount'] ;
@endphp
@endforeach
@endif
@if($overtimes)
@foreach($overtimes as $overtime)
| {{$overtime['overtime_title']}} |
{{$overtime['overtime_amount']}} |
@php
$total_earnings = $total_earnings + $overtime['overtime_amount'] ;
@endphp
@endforeach
@endif
| Total |
@if(config('variable.currency_format') ==='suffix')
{{$total_earnings}} {{config('variable.currency')}} |
@else
{{config('variable.currency')}} {{$total_earnings}} |
@endif