Implemented some person target functionality.

This commit is contained in:
Lukas Halbritter
2018-10-12 12:10:25 +02:00
parent c0d7ed7b16
commit de5f19c73a
5 changed files with 221 additions and 0 deletions
@@ -0,0 +1,34 @@
@extends('layout.master')
@section('title', 'Zahlungsverflichtung löschen')
@section('subnav')
<a href='{{ url()->previous() }}'>Zurück</a>
@endsection
@section('content')
<h2>@yield('title')</h2>
<form action='/targets/{{ $personTarget->id }}' method='post'>
{{ method_field('delete') }}
{{ csrf_field() }}
<p>Soll folgende Zahlungsverpflichtung wirklich gelöscht werden?</p>
<table border='1'>
<tr>
<th>Datum</th>
<th>Position</th>
<th>Person / Firma</th>
<th>Betrag</th>
</tr>
<tr>
<td>{{ formatDate($personTarget->date) }}</td>
<td>{{ $personTarget->reference }}</td>
<td>{{ $personTarget->person->fullName() }}</td>
<td>{{ $personTarget->signedAmount() }}</td>
</tr>
</table>
<button type="submit" id="submit">Ja</button>
</form>
@endsection