@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('family_accounts.edit_family_account') }}

@include('patient_discounts::family_accounts.menu')
@include('flash::message')
{{ Form::model($family_account, ['method' => 'PUT', 'route' => ['family_accounts.update',$family_account], 'data-toggle' => 'validator']) }}
{{ Form::label('family_head',__('family_accounts.family_head')) }}
{{ Form::label('family_members',__('family_accounts.family_members')) }}
{{ Form::label('current_balance',__('family_accounts.current_balance')) }} {{ Form::number('current_balance', $current_balance,['class' => 'form-control', 'readonly' => 'true']) }}
{{ Form::label('opening_amount',__('family_accounts.opening_amount')) }} {{ Form::number('opening_amount', $family_account->opening_amount,['class' => 'form-control','id' => 'opening_amount']) }}
opening_account_id)) style="display: none;" @endif>
Select affected equity account if the opening amount is the opening balance of this family on Stre@mline
{{ Form::label('is_it_opening_family_amount', 'Is opening amount the opening balance on Stre@mline for this family') }} {{ Form::select('is_it_opening_family_amount', [1 => 'Yes', 0 => 'No'], is_null($family_account->opening_account_id) ? null : 1, ['class' => 'form-control compulsory','required', 'id' => 'is_it_opening_amt']) }}
opening_account_id)) style="display: none;" @endif> {{ Form::label('opening_account_id', 'Opening Account') }} {{ Form::select('opening_account_id', $chart_of_accounts, $family_account->opening_account_id, ['class' => 'form-control opening_account_id']) }}
opening_account_id)) style="display: none;" @endif> {{ Form::label('opening_account_date', 'Opening Amount Date') }}
opening_account_id)) style="display: none;" @endif>

{{ Form::label('deposited_by', __('family_accounts.deposited_by')) }} {{ Form::text('deposited_by', $opening_deposit_record ? $opening_deposit_record->deposited_by : '', ['class'=>'form-control', 'id'=>'deposit_by']) }}
@if (Auth::user()->can('add-family-account-credit-limit'))
{{ Form::label('credit_limit', __('family_accounts.credit_limit')) }} {{ Form::number('credit_limit',$family_account->credit_limit,['class' => 'form-control']) }}
@endif
{{ Form::submit(__('family_accounts.save'),['class'=>'btn btn-success'])}} {{ Form::reset(__('family_accounts.cancel'),['type'=>'reset','class'=>'btn btn-default'])}}
{{ Form::close() }}
@endsection @push('scripts') @endpush