@extends('layouts.app') @section('title', __('accounting::lang.balance_sheet')) @section('content') @include('accounting::layouts.nav')

@lang( 'accounting::lang.balance_sheet' )

{!! Form::label('date_range_filter', __('report.date_range') . ':') !!} {!! Form::text('date_range_filter', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly', 'id' => 'date_range_filter']); !!}

@lang( 'accounting::lang.balance_sheet')

{{@format_date($start_date)}} ~ {{@format_date($end_date)}}

@php $total_assets = 0; $total_liab_owners = 0; @endphp
@lang( 'accounting::lang.assets') @lang( 'accounting::lang.liab_owners_capital')
@foreach($assets as $asset) @php $total_assets += $asset->balance @endphp @endforeach
{{$asset->name}} @format_currency($asset->balance)
@foreach($liabilities as $liability) @php $total_liab_owners += $liability->balance @endphp @endforeach @foreach($equities as $equity) @php $total_liab_owners += $equity->balance @endphp @endforeach
{{$liability->name}} @format_currency($liability->balance)
{{$equity->name}} @format_currency($equity->balance)
@lang( 'accounting::lang.total_assets'): @format_currency($total_assets) @lang( 'accounting::lang.total_liab_owners'): @format_currency($total_liab_owners)
@stop @section('javascript') @stop