Grand Total @if($salary_report_design->card_no==1) @endif @if($salary_report_design->emp_no==1) @endif @if($salary_report_design->joining_date==1) @endif {{number_format($grand_total_basic)}} {{-- Allowance --}} @if(count($allowances)> 0) @foreach($allowances as $allowance) {{-- @dd($total_salary_allowance) --}} {{-- {{number_format($total_salary_allowance->sum($allowance->id))}} --}} @endforeach @endif {{number_format($grand_total_gross)}} @if($salary_report_design->ot_hour ==1) {{number_format($grand_total_ot_amount)}} @endif {{number_format($grand_total_ot_day_amount)}} {{number_format($grand_total_late_early_amount)}} {{number_format($grand_total_absent_amount)}} @if(count($all_leave_type)>0) @foreach($all_leave_type as $leave_type_val)   @endforeach @endif {{number_format($total_leave_amount)}} @foreach($all_other_allowance as $data) {{-- {{number_format(abs($total_other_allowance->sum($data->id)))}} --}} {{number_format(abs(array_sum($total_other_allowance[$data->id])))}} @endforeach {{number_format($grand_total_salary)}} {{-- conveyance --}} {{-- {{$total_conveyance_amount}} --}} @if($salary_report_design->loan_balance == 1) {{number_format($salary_info->sum('loan_balance'))}} @endif {{number_format($grand_loan_total)}} {{number_format(abs($total_add_deduct_amount))}} @if($salary_report_design->advance == 1) {{number_format($grand_advance_total)}} @endif @if($salary_report_design->suspense == 1) {{number_format($grand_suspense_total)}} @endif {{number_format($grand_net_payable)}} {{number_format($grand_bank_total)}} {{number_format($grand_cash_total)}} @if($salary_report_design->payment_mode == 1) {{$grand_rocket_paid > 0 ? number_format($grand_rocket_paid) : null}} @endif   @if($grand_net_payable > 0)
@php $total_pay_in_word = number_format(round($grand_net_payable)); $converted_amount_in_text = convert_number($grand_net_payable); @endphp In Words : @php echo $converted_amount_in_text; @endphp Taka Only
{{$company_policy}}
@endif {{-- @include('payroll.signature') --}}