@extends('hr_main') @section('title', '| Security Fund Details' ) @section('content')
Security Fund Details
{{-- @if(count($data['receive']) > 0) --}} {{--

Advanced Salary Loan Receive

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