@extends('layouts.default') @section('content')
@foreach($piggybanks as $piggybank)
{{mf($piggybank->savedSoFar,true)}}
percentage == 100) class="progress-bar progress-bar-success" @else class="progress-bar progress-bar-info" @endif role="progressbar" aria-valuenow="{{$piggybank->percentage}}" aria-valuemin="0" aria-valuemax="100" style="width: {{$piggybank->percentage}}%;"> {{$piggybank->percentage}}%
{{mf($piggybank->targetamount,true)}}
@if($piggybank->leftToSave > 0) @endif
@if($piggybank->leftToSave > 0) {{mf($piggybank->leftToSave)}} @endif
@endforeach
Create piggy bank
Account status
@foreach($accounts as $id => $info) @endforeach
Account Balance Left for piggy banks Sum of piggy banks Saved so far Left to save
{{{$info['name']}}} {{mf($info['balance'])}} {{mf($info['leftForPiggybanks'])}} {{mf($info['sumOfTargets'])}} {{mf($info['sumOfSaved'])}} {{mf($info['leftToSave'])}}
@stop @section('scripts') {{HTML::script('assets/javascript/firefly/piggybanks.js')}} @stop