@extends('layouts.app') @section('title') Employees Benevolent Fund Report @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Employees Benevolent Fund Report



@if(Session::has('success')) @endif
{{-- --}} @php $total_fund = 0; $total_employees_bf_fund = 0; @endphp @foreach($employees_benevolent_funds as $employees_benevolent_fund ) @php $total = \App\HrmEmployeeBenevolentFound::getData($employees_benevolent_fund->id , $month , $curent_year ); @endphp @if( $total[0] > 0 && !empty($employees_benevolent_fund->benevolent_fund)) @foreach($employees_benevolent_fund->benevolent_fund as $list ) @if( $list->is_approved == 1) @php $total_fund += $total[0]; $total_employees_bf_fund += $total[3] + $total[0]; @endphp @endif @endforeach @endif @endforeach
NameMonth/Year: Employee Benevolent Fund Employer Benevolent Fund Total Status
{{$employees_benevolent_fund->name}} {{number_format($total[0],2)}} {{number_format($total[3],2)}} {{number_format($total[0] + $total[0],2)}} @if($total[2] == 1 )
  • Not Received
  • @elseif($total[2] == 0)
  • Received
  • @endif
    Total {{number_format($total_fund,2)}} {{number_format($total_fund,2)}} {{number_format($total_employees_bf_fund,2)}}
    @stop @section('js') @stop