kithkin/resources/views/book/form.blade.php

13 lines
445 B
PHP

<form method="POST" action="{{ $action }}">
@csrf
@if($isEdit) @method('PUT') @endif
<label>Display Name:</label>
<input name="displayname" value="{{ old('displayname', $addressbook->displayname ?? '') }}" required>
<label>Color:</label>
<input name="color" type="color" value="{{ old('color', $addressbook->meta->color ?? '#cccccc') }}">
<button type="submit">{{ $isEdit ? 'Update' : 'Create' }}</button>
</form>