Semi clean up for views that are responsible for creating earnings/spendings
MODIFY
resources/views/earnings/create.blade.php
resources/views/earnings/create.blade.php
@section('body')
<div class="wrapper spacing-top-large spacing-bottom-large">
<div class="box">
- <div class="section">
- <h3>Earnings &middot; Create</h3>
- </div>
<div class="section">
<form method="POST" action="/earnings">
{{ csrf_field() }}
- <div class="row gutter">
- <div class="column">
+ <div class="input input--small">
<label>Date</label>
<DatePicker></DatePicker>
</div>
- <div class="column">
+ <div class="input input--small">
<label>Description</label>
<input type="text" name="description" />
+ </div>
+ <div class="input input--small">
<label>Amount</label>
<input type="text" name="amount" />
</div>
- </div>
<button>@lang('actions.create')</button>
</form>
</div>

MODIFY
resources/views/spendings/create.blade.php
resources/views/spendings/create.blade.php
@section('body')
<div class="wrapper spacing-top-large spacing-bottom-large">
<div class="box">
- <div class="section">
- <h3>Spendings &middot; Create</h3>
- </div>
<div class="section">
<form method="POST" action="/spendings">
{{ csrf_field() }}
+ <div class="input input--small">
<label>Tag</label>
<select name="tag_id">
<option value="">-</option>
<option value="{{ $tag->id }}">{{ $tag->name }}</option>
@endforeach
</select>
+ </div>
+ <div class="input input--small">
<label>Date</label>
<DatePicker></DatePicker>
+ </div>
+ <div class="input input--small">
<label>Description</label>
<input type="text" name="description" />
+ </div>
+ <div class="input input--small">
<label>Amount</label>
<input type="text" name="amount" />
+ </div>
<button>@lang('actions.create')</button>
</form>
</div>

Semi clean up for views that are responsible for creating earnings/spendings