@extends('hr_main') @section('title', '| '. $data['pageTitle'] ) @section('content')
{!! $data['pageTitle'] !!}

Warning: Undefined variable $data in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 31

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 31

Warning: Attempt to read property "from_month" on null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 31

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 31
January, 1970

Warning: Undefined variable $data in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 34

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 34

Warning: Attempt to read property "to_month" on null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 34

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/hr/epsBenefitGenerate/view.blade.php on line 34
January, 1970
@if($data['model']->items && $data['model']->items->count() > 0) @php $u = 0; $grandTotalContributeAmount = 0; $grandTotalEpsBalanceAmount = 0; @endphp @if($data['model']->items->isNotEmpty()) @php $scheduleList = $data['model']->items->groupBy('user.organization.project_type_id_fk'); @endphp @foreach ($scheduleList as $i => $schedule) @php $subTotalContributeAmount = 0; $subTotalEpsBalanceAmount = 0; @endphp @foreach($schedule as $srow) @php $u++; $subTotalContributeAmount += $srow->contribute_amount; $subTotalEpsBalanceAmount += $srow->eps_balance; @endphp {{-- First EPS receive month is EPS start month. --}} @endforeach @php $grandTotalContributeAmount += $subTotalContributeAmount; $grandTotalEpsBalanceAmount += $subTotalEpsBalanceAmount; @endphp @endforeach @endif
SL# Employee Name Employee ID Opening Date EPS Balance Contribute Amount
{{ $data['projectType']->find($i)->name ?? '' }}
{{ $u }} {{ $srow->user->employee->emp_name_english ?? '' }} {{ $srow->user->employee->emp_id ?? '' }}{{ date('d-m-Y', strtotime(optional($data['epsReceive']->where('users_id_fk', $srow->user->id)->first())->for_month ?? '')) }} {{ number_format($srow->eps_balance,2) }} {{ number_format($srow->contribute_amount,2) }}
Sub Total: {{ number_format($subTotalEpsBalanceAmount, 2) }} {{ number_format($subTotalContributeAmount, 2) }}
Total: {{ number_format($grandTotalEpsBalanceAmount, 2) }} {{ number_format($grandTotalContributeAmount, 2) }}
@endif
@endsection