Refactor earnings/spendings's create view
MODIFY
resources/views/earnings/create.blade.php
resources/views/earnings/create.blade.php
@extends('layout')
@section('body')
- <h1 class="spacing-bottom-large">Create earning</h1>
+ <h1 class="spacing-bottom-large">Earnings &middot; Create</h1>
<div class="box spacing-small">
<form method="POST" action="/earnings">
{{ csrf_field() }}
<input type="text" name="description" />
<label>Amount</label>
<input type="text" name="amount" />
- <input type="submit" value="Create earning" />
+ <input type="submit" value="Create" />
</form>
</div>
@endsection

MODIFY
resources/views/spendings/create.blade.php
resources/views/spendings/create.blade.php
@extends('layout')
@section('body')
- <h1 class="spacing-bottom-large">Create spending</h1>
+ <h1 class="spacing-bottom-large">Spendings &middot; Create</h1>
<div class="box spacing-small">
<form method="POST" action="/spendings">
{{ csrf_field() }}
<input type="text" name="description" />
<label>Amount</label>
<input type="text" name="amount" />
- <input type="submit" value="Create spending" />
+ <input type="submit" value="Create" />
</form>
</div>
@endsection

Refactor earnings/spendings's create view