/
create.blade.php
44 lines (42 loc) · 2.04 KB
/
create.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@extends('layout')
@section('title', __('actions.create') . ' ' . __('models.spending'))
@section('body')
<div class="wrapper my-3">
<h2>{{ __('actions.create') }} {{ __('models.spending') }}</h2>
<div class="box mt-3">
<form method="POST" action="/spendings" autocomplete="off">
{{ csrf_field() }}
<div class="box__section">
<div class="input input--small">
<label>{{ __('models.tag') }}</label>
<select name="tag_id">
<option value="">-</option>
@foreach ($tags as $tag)
<option value="{{ $tag->id }}" v-pre>{{ $tag->name }}</option>
@endforeach
</select>
@include('partials.validation_error', ['payload' => 'tag_id'])
</div>
<div class="input input--small">
<label>{{ __('fields.date') }}</label>
<DatePicker></DatePicker>
@include('partials.validation_error', ['payload' => 'date'])
</div>
<div class="input input--small">
<label>{{ __('fields.description') }}</label>
<input type="text" name="description" />
@include('partials.validation_error', ['payload' => 'description'])
</div>
<div class="input input--small mb-0">
<label>{{ __('fields.amount') }}</label>
<input type="text" name="amount" />
@include('partials.validation_error', ['payload' => 'amount'])
</div>
</div>
<div class="box__section box__section--highlight text-right">
<button class="button">@lang('actions.create')</button>
</div>
</form>
</div>
</div>
@endsection