@php $member = []; if (isset($event['member']) && count($event['member']) > 0) { foreach ($event['member'] as $key => $val) { $member[$key]['id'] = $val->id; $member[$key]['name'] = $val->name; } } $i = 1; @endphp

Finquest

{{ $event['name'] }} {{ count($event['member']) }} members

Split Summary

Created On: {{ $event['created_at'] }}
Updated On: {{ $event['updated_at'] }}
@if (isset($event['splitDataFinal']) && !empty($event['splitDataFinal'])) @foreach ($event['splitDataFinal'] as $key => $val) @endforeach @endif
No From To Amount
{{ $i++ }} {{ $member[$val[1]]['name'] }} {{ $member[$val[0]]['name'] }} {{ sprintf('%01.2f', $val[2]) }}

Transactions

@php $total = 0; @endphp @if (isset($event['transaction']) && !empty($event['transaction'])) @foreach ($event['transaction'] as $key => $val) @php $total = $total + $val['amount']; @endphp @endforeach @endif
Name Date Category Note Split Between Amount
{{ $val['payer'] }} {{ $val['transaction_date'] }} {{ $val['category'] }} {{ $val['note'] }} @if (isset($val['splitbetween']) && !empty($val['splitbetween'])) @foreach ($val['splitbetween'] as $k => $v) {{ $v }}, @endforeach @endif {{ sprintf('%01.2f', $val['amount']) }}
Total {{ sprintf('%01.2f', $total) }}

TOTAL EXPENSE(MEMBER WISE)

@php $i = 1; @endphp @if (isset($event['expenseData']) && !empty($event['expenseData'])) @foreach ($event['expenseData'] as $key => $val) @if (isset($val->amount) && $val->amount > 0) @endif @endforeach @endif
Name Amount
{{ $val->name }} {{ sprintf('%01.2f', $val->amount) }}

TOTAL INCOME(MEMBER WISE)

@php $i = 1; @endphp @if (isset($event['incomeData']) && !empty($event['incomeData'])) @foreach ($event['incomeData'] as $key => $val) @if (isset($val->amount) && $val->amount > 0) @endif @endforeach @endif
Name Amount
{{ $val->name }} {{ sprintf('%01.2f', $val->amount) }}

Download our app