23 lines
672 B
PHP
23 lines
672 B
PHP
@extends('layout.master')
|
|
|
|
@section('title', 'Person löschen')
|
|
|
|
@section('subnav')
|
|
<a href='{{ url()->previous() }}'>Zurück</a>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<form action='/people/{{ $person->id }}' method='post'>
|
|
{{ method_field('delete') }}
|
|
{{ csrf_field() }}
|
|
@if ($person->isEven())
|
|
<p>Soll <b>{{ $person->fullName() }}</b> wirklich gelöscht werden?</p>
|
|
<button type="submit" id="submit">Ja</button>
|
|
@else
|
|
<p><b>{{ $person->fullName() }}</b> kann nicht gelöscht werden, da es noch
|
|
offene Forderungen oder Verbindlichkeiten gibt.</p>
|
|
@endif
|
|
</form>
|
|
@endsection
|
|
|