@extends('hr_main') @section('title', '| Welfare Fund Details' ) @section('content')
Welfare Fund Details

Welfare Fund Receive

{{-- @if(count($data['receive']) > 0) --}} {{--

Advanced Salary Loan Receive

--}} @php $sl = 1; $total = 0; $ownTotal = 0; @endphp @foreach ($wfInfo as $key => $info) @php $total += $info['own']; @endphp @if ($info['date'] == 'Opening Balance') @else @endif @php $ownTotal += $info['own']; @endphp @endforeach
Sl Date Amount Total
{{ $info['date'] }}{{ $sl++ }} {{ $info['date'] }}{{ number_format($info['own'], 2) }} {{ number_format($total, 2) }}
Total: {{ number_format($ownTotal, 2) }} {{ number_format($ownTotal, 2) }}
{{-- @endif --}}

Welfare Fund Withdraw

@php $sl = 1; $total = 0; @endphp @foreach($wfWithDrawInfo as $key => $info) @php $total = $total + $info->emp_amount; @endphp @endforeach
Sl Transaction Date Amount
{{ $sl++ }} {{ date('d-m-Y', strtotime($info->transaction_date)) }} {{ number_format($info->emp_amount, 2) }}
Total: {{ number_format($total, 2) }}
@endsection