@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
{{ $event['name'] }} | {{ count($event['member']) }} members |
Split Summary |
Created On: {{ $event['created_at'] }}
|
Updated On: {{ $event['updated_at'] }}
|
No | From | To | Amount |
---|---|---|---|
{{ $i++ }} | {{ $member[$val[1]]['name'] }} | {{ $member[$val[0]]['name'] }} | {{ sprintf('%01.2f', $val[2]) }} |
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) }} |
Name | Amount |
---|---|
{{ $val->name }} | {{ sprintf('%01.2f', $val->amount) }} |
Name | Amount |
---|---|
{{ $val->name }} | {{ sprintf('%01.2f', $val->amount) }} |