@extends('layouts.master') @section('title') {{trans_choice('general.balance',1)}} {{trans_choice('general.sheet',1)}} @endsection @section('content')

{{trans_choice('general.balance',1)}} {{trans_choice('general.sheet',1)}} @if(!empty($start_date)) as at {{$start_date}} @else as at {{date("Y-m-d")}} @endif

{{trans_choice('general.date',1)}} {{trans_choice('general.range',1)}}

{!! Form::open(array('url' => Request::url(), 'method' => 'post','class'=>'form-horizontal', 'name' => 'form')) !!}
{!! Form::text('start_date',null, array('class' => 'form-control date-picker', 'placeholder'=>"Date",'required'=>'required')) !!}
{{trans_choice('general.reset',1)}}!
{!! Form::close() !!}

{{trans_choice('general.balance',1)}} {{trans_choice('general.sheet',1)}}
@if(!empty($start_date)) as at {{$start_date}} @else as at {{date("Y-m-d")}} @endif

@foreach(\App\Models\AssetType::where('type','investment')->get() as $key)
{{trans_choice('general.asset',2)}}
{{trans_choice('general.current',1)}} {{trans_choice('general.asset',2)}}:
      {{trans_choice('general.loan',2)}} {{trans_choice('general.outstanding',2)}}
            {{trans_choice('general.current',1)}}
            {{trans_choice('general.past_due',1)}}
            {{trans_choice('general.restructured',1)}}
      {{trans_choice('general.loan',2)}} {{trans_choice('general.outstanding',1)}} ({{trans_choice('general.gross',1)}}) {{round(\App\Helpers\GeneralHelper::loans_total_due($start_date,$end_date),2)}}
            ({{trans_choice('general.loan',1)}} {{trans_choice('general.loss',1)}} {{trans_choice('general.reserve',1)}} )
            {{trans_choice('general.net',1)}} {{trans_choice('general.loan',2)}} {{trans_choice('general.outstanding',1)}}
{{round(\App\Helpers\GeneralHelper::loans_total_due($start_date,$end_date),2)}}
{{trans_choice('general.total',1)}} {{trans_choice('general.current',1)}} {{trans_choice('general.asset',2)}}
{{round(\App\Helpers\GeneralHelper::loans_total_due($start_date,$end_date),2)}}
{{trans_choice('general.investment',2)}}:
      {{$key->name}}