Easy School ERP

School Address

Phone : 343434343434

Email : support@easylerningbd.com

Employee Monthly Salary

@php $date = date('Y-m',strtotime($details['0']->date)); if ($date !='') { $where[] = ['date','like',$date.'%']; } $totalattend = App\Models\EmployeeAttendance::with(['user'])->where($where)->where('employee_id',$details['0']->employee_id)->get(); $salary = (float)$details['0']['user']['salary']; $salaryperday = (float)$salary/30; $absentcount = count($totalattend->where('attend_status','Absent')); $totalsalaryminus = (float)$absentcount*(float)$salaryperday; $totalsalary = (float)$salary-(float)$totalsalaryminus; @endphp
Sl Employee Details Employee Data
1 Employee Name {{ $details['0']['user']['name'] }}
2 Basic Salary {{ $details['0']['user']['salary'] }}
3 Total Absent for This Month {{ $absentcount }}
4 Month {{ date('M Y',strtotime($details['0']->date)) }}
5 Salary This Month {{ $totalsalary }}


Print Data : {{ date("d M Y") }}
Sl Employee Details Employee Data
1 Employee Name {{ $details['0']['user']['name'] }}
2 Basic Salary {{ $details['0']['user']['salary'] }}
3 Total Absent for This Month {{ $absentcount }}
4 Month {{ date('M Y',strtotime($details['0']->date)) }}
5 Salary This Month {{ $totalsalary }}


Print Data : {{ date("d M Y") }}