@extends('layouts.app') @section('title') Monthly Salary Report @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Employees Monthly Salary Report







@if(Session::has('success')) @endif
@php $total_earning = 0; $total_net_salary = 0; $total_bf = 0; $total_deduction = 0; $total_advance = 0; $total_loan = 0; $total_tax = 0; @endphp @if($hrmemployees_salaries->count() > 0 ) @foreach($hrmemployees_salaries as $employees_salary ) @foreach($all_employee_salary as $employees_salary_pending ) @php $total = \App\HrmEmployeeMonthlyEarningDeduction::getData($employees_salary->id , $month , $curent_year ); @endphp @if($total[0] > 0 && $total[1] > 0 && $employees_salary_pending->employ_id == $employees_salary->id) @php $net_salary = ($total[0]-$total[1]-$total[3]-$total[4] - $total[5] - $total[6]); $total_net_salary += $net_salary; $total_earning += $total[0]; $total_bf += $total[4]; $total_deduction += $total[1]; $total_advance += $total[6]; $total_loan += $total[5]; $total_tax += $total[3]; @endphp @endif @endforeach @endforeach @endif
Name: Month/Year: Earning: Tax: Benavelent Found: Deduction : Advance : Loan : Net Salary :
{{$employees_salary->name}} {{date('F', mktime(0, 0, 0, $month))}} / {{$curent_year}} {{number_format($total[0])}} {{number_format($total[3])}} {{number_format($total[4])}} {{number_format($total[1])}} {{number_format($total[6])}} {{number_format($total[5])}} {{ number_format($net_salary) }}
Total   {{number_format($total_earning)}} {{number_format($total_tax)}} {{number_format($total_bf)}} {{number_format($total_deduction)}} {{number_format($total_advance)}} {{number_format($total_loan)}} {{number_format($total_net_salary )}}
@stop @section('js') @stop