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

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

@include('patient_discounts::family_accounts.menu')
@include('flash::message') @if ($errors->any())
@endif
{{ Form::open(['method'=>'post','route'=>'family_accounts.store', 'id' => 'family_account_form']) }}
{{ Form::label('family_head', __('family_accounts.family_head')) }}
{{ Form::label('family_members',__('family_accounts.family_members')) }}
{{ Form::label('deposit_amount', __('family_accounts.amount_deposited')) }} {{ Form::number('deposit_amount',0,['class' => 'form-control', 'id' => 'deposit_amount']) }}
{{ Form::label('deposited_by', __('family_accounts.deposited_by')) }} {{ Form::text('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',0,['class' => 'form-control']) }}
@endif
{{ Form::submit(__('family_accounts.save'),['class'=>'btn btn-success', 'id' => 'submitBtn'])}} {{ Form::reset(__('family_accounts.cancel'),['type'=>'reset','class'=>'btn btn-default'])}}
{{ Form::close() }}
@endsection @push('scripts') @endpush