Some work for the piggy bank show routine [skip ci]

This commit is contained in:
James Cole
2014-08-11 07:28:47 +02:00
parent 41562f8f6d
commit dbcf6613c6
4 changed files with 28 additions and 10 deletions

View File

@@ -47,7 +47,7 @@
<h3>Piggy banks</h3>
@foreach($piggybanks as $piggybank)
<h4>{{{$piggybank->name}}} <small>{{mf($piggybank->target)}}</small></h4>
<h4><a href="{{route('piggybanks.show',$piggybank->id)}}">{{{$piggybank->name}}}</a> <small>{{mf($piggybank->target)}}</small></h4>
@if(!is_null($piggybank->targetdate))
<p>
Target date: {{$piggybank->targetdate->format('jS F Y')}}

View File

@@ -0,0 +1,19 @@
@extends('layouts.default')
@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly
<small>Piggy bank "{{{$piggyBank->name}}}"</small>
</h1>
<p class="lead">Set targets and save money</p>
<p class="text-info">
Saving money is <em>hard</em>. Piggy banks allow you to group money
from an account together. If you also set a target (and a target date) you
can save towards your goals.
</p>
</div>
</div>
@stop
@section('scripts')
@stop