48 lines
1.7 KiB
PHP
48 lines
1.7 KiB
PHP
{{-- Modules/Company/resources/views/companies/_form.blade.php --}}
|
|
|
|
@csrf
|
|
|
|
<div class="space-y-6">
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Name</label>
|
|
<input
|
|
name="name"
|
|
value="{{ old('name', $company->name) }}"
|
|
class="mt-1 w-full rounded-lg border-gray-300"
|
|
required
|
|
>
|
|
@error('name') <p class="mt-1 text-sm text-red-600">{{ $message }}</p> @enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Billing email</label>
|
|
<input
|
|
type="email"
|
|
name="billing_email"
|
|
value="{{ old('billing_email', $company->billing_email) }}"
|
|
class="mt-1 w-full rounded-lg border-gray-300"
|
|
required
|
|
>
|
|
@error('billing_email') <p class="mt-1 text-sm text-red-600">{{ $message }}</p> @enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Status</label>
|
|
<select name="status" class="mt-1 w-full rounded-lg border-gray-300" required>
|
|
<option value="active" @selected(old('status', $company->status) === 'active')>Active</option>
|
|
<option value="inactive" @selected(old('status', $company->status) === 'inactive')>Inactive</option>
|
|
</select>
|
|
@error('status') <p class="mt-1 text-sm text-red-600">{{ $message }}</p> @enderror
|
|
</div>
|
|
|
|
<div class="flex items-center gap-3">
|
|
<button class="rounded-lg bg-blue-600 px-4 py-2 text-white">
|
|
Save company
|
|
</button>
|
|
|
|
<a href="{{ route('platform.companies.index') }}" class="text-sm text-gray-600">
|
|
Cancel
|
|
</a>
|
|
</div>
|
|
</div>
|