@extends('main') @section('css') @endsection @section('content')

{{--
--}} {{--
--}} {{--
RECEIVE
--}} {{-- {{number_format($vars['serviceOrders']?->sum('amount'), 2)}} /=--}} {{--
--}} {{-- --}} {{--
--}} {{--
WALLET
--}} {{-- {{number_format($vars['customer']?->wallet?->amount, 2)}} /=--}} {{--
--}} {{--
--}}
@if(isset($vars['wallets']) && $vars['wallets']?->count() > 0)

Wallets

@foreach ($vars['wallets'] as $index => $row) @include('accountants.renders.wallet_tr') @endforeach
S/N Date Name Amount Reference Actions
@endif
@if($vars['payments']?->count() > 0)

Payments

@php $summation = 0; @endphp @foreach ($vars['payments'] as $index => $row) @php $policy = $row?->belong?->belong; if($row->pay_type == "Cash Out"){ $summation = $summation - $row->amount; }else{$summation = $summation + $row->amount;} @endphp @include('accountants.renders.payment_tr') @endforeach
S/N Date Name Policy Reference Status Amount Total
@endif
@endsection @section('js') @endsection