@extends('layouts.main') @push('styles') @endpush @section('content') @if(session()->get("print_family_account_receipt_pdf") == 1) {{ Form::hidden('print_family_account_receipt_pdf', 1, ['id' => 'print_family_account_receipt_pdf']) }} @endif @if(session()->get("print_family_account_refund_receipt_pdf") == 1) {{ Form::hidden('print_family_account_refund_receipt_pdf', 1, ['id' => 'print_family_account_refund_receipt_pdf']) }} @endif
| # | {{ __('family_accounts.deposited_on') }} | Received By | {{ __('family_accounts.family_head') }} | {{ __('family_accounts.deposited_by') }} | {{ __('family_accounts.amount_deposited') }} | |
|---|---|---|---|---|---|---|
| {{ $counter }} | {{ streamline_date($deposit->deposit_date) }} | {{ get_full_name($deposit->created_by, "id", "first_name", "last_name", "users") }} | @php $family_head_id = get_name($deposit->family_account_id, "id", "family_head_id", "family_accounts") @endphp{{ get_full_name($family_head_id, "id", "first_name", "last_name", "patients") }} ({{ get_name($family_head_id, "id", "number","patients") }}) | @php $family_members_array = []; $family_account_details = \Streamline\Models\FamilyAccount::withTrashed()->find($deposit->family_account_id); $family_members_array = explode(",", $family_account_details->family_members_ids); @endphp {{--
@for($i = 0; $i < count($family_members_array); $i++)
| --}}
{{ $deposit->deposited_by }} | @php $total_family_deposits += $deposit->deposit_amount; @endphp {{ ugandan_shillings($deposit->deposit_amount) }} |
No family deposits have been made |
||||||
| {{ __('family_accounts.total') }} | {{ ugandan_shillings($total_family_deposits) }} | |||||
| # | {{ __('family_accounts.date') }} | Member | {{ __('family_accounts.reason') }} | {{ __('family_accounts.amount_consumed') }} | |
|---|---|---|---|---|---|
| {{ $counter }} | @php $family_head_id = get_name($member_consumption->family_account_id, "id", "family_head_id", "family_accounts") @endphp{{ streamline_date($member_consumption->created_at) }} | {{ get_full_name($member_consumption->patient_id, "id", "first_name", "last_name", "patients") }} |
{{ $member_consumption->expenditure_tag == "Services" ? "Consultation / Services" : $member_consumption->expenditure_tag }}
|
{{ ugandan_shillings($member_consumption->amount_consumed) }} @php $total_consumptions += $member_consumption->amount_consumed; @endphp | |
No family consumption has been recorded |
|||||
| {{ __('family_accounts.total') }} | {{ ugandan_shillings($total_consumptions) }} | ||||
| # | Refunded On | Cashier | {{ __('family_accounts.family_head') }} | Refunded To | Amount Refunded |
|---|---|---|---|---|---|
| {{ $counter }} | {{ streamline_date($refund->created_at) }} | {{ get_full_name($refund->created_by, "id", "first_name", "last_name", "users") }} | @php $family_head_id = get_name($refund->family_account_id, "id", "family_head_id", "family_accounts") @endphp{{ get_full_name($family_head_id, "id", "first_name", "last_name", "patients") }} ({{ get_name($family_head_id, "id", "number","patients") }}) | {{ $refund->refund_to }} | @php $total_family_refunds += $refund->refund_amount; @endphp {{ ugandan_shillings($refund->refund_amount) }} |
No family refunds have been made |
|||||
| {{ __('family_accounts.total') }} | {{ ugandan_shillings($total_family_refunds) }} | ||||