38 lines
1.3 KiB
PHP
38 lines
1.3 KiB
PHP
@extends('layout.master')
|
|
|
|
@section('title', 'Zahlungsverflichtung löschen')
|
|
|
|
@section('subnav')
|
|
<a href='{{ url()->previous() }}' class='btn btn-outline-secondary'>Zurück</a>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<h2>@yield('title')</h2>
|
|
<form action='/targets/{{ $personTarget->id }}' method='post' class='mt-4 text-center'>
|
|
{{ method_field('delete') }}
|
|
{{ csrf_field() }}
|
|
<div class='alert alert-danger'>
|
|
<p>Soll folgende Zahlungsverpflichtung wirklich gelöscht werden?</p>
|
|
|
|
<table class='table'>
|
|
<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>{!! formatAmount($personTarget->signedAmount()) !!}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<button class='btn btn-primary' type="submit" id="submit">Ja</button>
|
|
<a href="{{ url()->previous() }}" class="btn btn-outline-secondary">Nein</a>
|
|
</div>
|
|
</form>
|
|
@endsection
|
|
|