@extends('main') @section('css') @endsection @section('content')

Payroll

View Monthly Salary Sheet

@php $totalGrossSalary = 0; $totalBasic = 0; $totalHouseRent = 0; $totalMedicalAllowance = 0; $totalOtherAllowance = 0; $totalSalesComission = 0; $totalFestivalBonus = 0; $totalMobileBill = 0; $totalArrear = 0; $totalTotalPayableSalary = 0; $totalProvidentFund = 0; $totalMedicalFund = 0; $totalSecurityDeposit = 0; $totalAit = 0; $totalLoan = 0; $totalAdjustment = 0; $totalLateDeduction = 0; $totalLwp = 0; $totalOtherAdjustment = 0; $totalTotalDeduction = 0; $totalNetPayableSalary = 0; @endphp @foreach($monthlyAllowedDeductions as $monthlyAllowedDeduction) @php $totalPayableSalary = (float) @$monthlyAllowedDeduction->gross_salary + (float) @$monthlyAllowedDeduction->other_allowance + (float) @$monthlyAllowedDeduction->sales_comission + (float) @$monthlyAllowedDeduction->festival_bonus + (float) @$monthlyAllowedDeduction->mobile_bill + (float) @$monthlyAllowedDeduction->arrear; $totalDeduction = (float) @$monthlyAllowedDeduction->provident_fund_d + (float) @$monthlyAllowedDeduction->medical_fund_d + (float) @$monthlyAllowedDeduction->security_deposit_d + (float) @$monthlyAllowedDeduction->ait_d + (float) @$monthlyAllowedDeduction->loan_d + (float) @$monthlyAllowedDeduction->adjustment_d + (float) @$monthlyAllowedDeduction->late_deduction_d + (float) @$monthlyAllowedDeduction->lwp_d + (float) @$monthlyAllowedDeduction->other_adjustment_d; $netPayableSalary = $totalPayableSalary - $totalDeduction; $totalGrossSalary += (float) $monthlyAllowedDeduction->gross_salary; $totalBasic += (float) $monthlyAllowedDeduction->basic; $totalHouseRent += (float) $monthlyAllowedDeduction->house_rent; $totalMedicalAllowance += (float) $monthlyAllowedDeduction->medical_allowance; $totalOtherAllowance += (float) $monthlyAllowedDeduction->other_allowance; $totalSalesComission += (float) $monthlyAllowedDeduction->sales_comission; $totalFestivalBonus += (float) $monthlyAllowedDeduction->festival_bonus; $totalMobileBill += (float) $monthlyAllowedDeduction->mobile_bill; $totalArrear += (float) $monthlyAllowedDeduction->arrear; $totalTotalPayableSalary += $totalPayableSalary; $totalProvidentFund += (float) $monthlyAllowedDeduction->provident_fund_d; $totalMedicalFund += (float) $monthlyAllowedDeduction->medical_fund_d; $totalSecurityDeposit += (float) $monthlyAllowedDeduction->security_deposit_d; $totalAit += (float) $monthlyAllowedDeduction->ait_d; $totalLoan += (float) $monthlyAllowedDeduction->loan_d; $totalAdjustment += (float) $monthlyAllowedDeduction->adjustment_d; $totalLateDeduction += (float) $monthlyAllowedDeduction->late_deduction_d; $totalLwp += (float) $monthlyAllowedDeduction->lwp_d; $totalOtherAdjustment += (float) $monthlyAllowedDeduction->other_adjustment_d; $totalTotalDeduction += $totalDeduction; $totalNetPayableSalary += $netPayableSalary; @endphp @endforeach @foreach( $monthlyAllowedDeductions as $key => $monthlyAllowedDeduction ) @php $totalPayableSalary = (float) @$monthlyAllowedDeduction->gross_salary + (float) @$monthlyAllowedDeduction->other_allowance + (float) @$monthlyAllowedDeduction->sales_comission + (float) @$monthlyAllowedDeduction->festival_bonus + (float) @$monthlyAllowedDeduction->mobile_bill + (float) @$monthlyAllowedDeduction->arrear; $totalDeduction = (float) @$monthlyAllowedDeduction->provident_fund_d + (float) @$monthlyAllowedDeduction->medical_fund_d + (float) @$monthlyAllowedDeduction->security_deposit_d + (float) @$monthlyAllowedDeduction->ait_d + (float) @$monthlyAllowedDeduction->loan_d + (float) @$monthlyAllowedDeduction->adjustment_d + (float) @$monthlyAllowedDeduction->late_deduction_d + (float) @$monthlyAllowedDeduction->lwp_d + (float) @$monthlyAllowedDeduction->other_adjustment_d; $netPayableSalary = $totalPayableSalary - $totalDeduction; @endphp @endforeach
{{ $totalGrossSalary }} {{ $totalBasic }} {{ $totalHouseRent }} {{ $totalMedicalAllowance }} {{ $totalOtherAllowance }} {{ $totalSalesComission }} {{ $totalFestivalBonus }} {{ $totalMobileBill }} {{ $totalArrear }} {{ $totalTotalPayableSalary }} {{ $totalProvidentFund }} {{ $totalMedicalFund }} {{ $totalSecurityDeposit }} {{ $totalAit }} {{ $totalLoan }} {{ $totalAdjustment }} {{ $totalLateDeduction }} {{ $totalLwp }} {{ $totalOtherAdjustment }} {{ $totalTotalDeduction }} {{ $totalNetPayableSalary }}
SL.No. Employee ID Name of Employee Designation Employment Status Department Joining Date Gross Salary Basic House Rent Medical Allowance Other Allowance Sales Commission Festival Bonus Mobile Bill Arrear Total Payable Salary Provident Fund Medical Fund Security Deposit AIT Loan / Advance Adjustment Late Deduction LWP/ Absence/ Days Work Other Adjustment Total Deduction Net Payable Salary Account Number
{{ $key+1 }} {{ $monthlyAllowedDeduction->userAccessPin }} {{ @$monthlyAllowedDeduction->firstName.' '.@$monthlyAllowedDeduction->middleName.' '.@$monthlyAllowedDeduction->lastName }} {{ @$monthlyAllowedDeduction->title }} {{ @$monthlyAllowedDeduction->typeTitle }} {{ @$monthlyAllowedDeduction->departmentName }} {{ @$monthlyAllowedDeduction->actualJoinDate }} {{ @$monthlyAllowedDeduction->gross_salary }} {{ @$monthlyAllowedDeduction->basic }} {{ @$monthlyAllowedDeduction->house_rent }} {{ @$monthlyAllowedDeduction->medical_allowance }} {{ @$monthlyAllowedDeduction->other_allowance }} {{ @$monthlyAllowedDeduction->sales_comission }} {{ @$monthlyAllowedDeduction->festival_bonus }} {{ @$monthlyAllowedDeduction->mobile_bill }} {{ @$monthlyAllowedDeduction->arrear }} {{ $totalPayableSalary }} {{ @$monthlyAllowedDeduction->provident_fund_d }} {{ @$monthlyAllowedDeduction->medical_fund_d }} {{ @$monthlyAllowedDeduction->security_deposit_d }} {{ @$monthlyAllowedDeduction->ait_d }} {{ @$monthlyAllowedDeduction->loan_d }} {{ @$monthlyAllowedDeduction->adjustment_d }} {{ @$monthlyAllowedDeduction->late_deduction_d }} {{ @$monthlyAllowedDeduction->lwp_d }} {{ @$monthlyAllowedDeduction->other_adjustment_d }} {{ $totalDeduction }} {{ $netPayableSalary }} {{ @$monthlyAllowedDeduction->bankAccountNo }}
@endsection @section('js') @endsection