35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
@php
|
|
$isEdit = !is_null($parent);
|
|
@endphp
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Name</label>
|
|
<input type="text" name="name"
|
|
value="{{ old('name', $parent->name ?? '') }}"
|
|
class="mt-1 w-full rounded-md border-gray-300">
|
|
@error('name') <div class="mt-1 text-sm text-red-600">{{ $message }}</div> @enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Email</label>
|
|
<input type="email" name="email"
|
|
value="{{ old('email', $parent->email ?? '') }}"
|
|
class="mt-1 w-full rounded-md border-gray-300">
|
|
@error('email') <div class="mt-1 text-sm text-red-600">{{ $message }}</div> @enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Phone</label>
|
|
<input type="text" name="phone"
|
|
value="{{ old('phone', $parent->phone ?? '') }}"
|
|
class="mt-1 w-full rounded-md border-gray-300">
|
|
@error('phone') <div class="mt-1 text-sm text-red-600">{{ $message }}</div> @enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Notes</label>
|
|
<textarea name="notes" rows="4"
|
|
class="mt-1 w-full rounded-md border-gray-300">{{ old('notes', $parent->notes ?? '') }}</textarea>
|
|
@error('notes') <div class="mt-1 text-sm text-red-600">{{ $message }}</div> @enderror
|
|
</div>
|