{{-- --}} {{config('app.name')}}

@lang('file.Payment History')

{{$company['company_name']}}
{{$company['location']['address1']}}
{{$company['location']['city']}},{{$company['location']['country']['name']}}-{{$company['location']['zip']}}
Phone: {{$company['contact_no']}}| {{trans('file.Email')}}: {{$company['email']}}

{{trans('file.Payslip')}}: {{$month_year}}
{{__('Employee ID')}}: {{$user['username'] ?? ''}} {{__('Employee Name')}}: {{$first_name}} {{$last_name}} {{__('Payslip NO')}}: {{$id}}
{{trans('file.Phone')}}: {{$contact_no}} {{__('Joining Date')}}: {{$joining_date}} {{__('Payslip Type')}}: {{$payment_type}}
{{trans('file.Company')}}: {{$company['company_name']}} {{trans('file.Department')}}: {{$department['department_name']}} {{trans('file.Designation')}}: {{$designation['designation_name']}}

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

@php $total_deductions = 0; @endphp @if($loans) @foreach($loans as $loan) @php $total_deductions = $total_deductions + $loan['monthly_payable'] ; @endphp @endforeach @endif @if($deductions) @foreach($deductions as $deduction) @php $total_deductions = $total_deductions + $deduction['deduction_amount'] ; @endphp @endforeach @endif @php $total_deductions = $total_deductions + $pension_amount; @endphp @if(config('variable.currency_format') =='suffix') @else @endif
{{trans('file.Deductions')}}
{{trans('file.Description')}} {{trans('file.Amount')}}
{{$loan['loan_title']}} {{$loan['monthly_payable']}}
{{$deduction['deduction_title']}} {{$deduction['deduction_amount']}}
{{__('Pension Amount')}} {{$pension_amount}}
{{trans('file.Total')}}{{$total_deductions}} {{config('variable.currency')}}{{config('variable.currency')}} {{$total_deductions}}
@if(config('variable.currency_format') =='suffix')

{{__('Total Paid')}} : {{$net_salary}} {{config('variable.currency')}}

@else

{{__('Total Paid')}} :{{config('variable.currency')}} {{$net_salary}}

@endif