76 lines
3.1 KiB
PHP
76 lines
3.1 KiB
PHP
@csrf
|
|
|
|
<div class="grid gap-5 md:grid-cols-2">
|
|
<div>
|
|
<label for="name" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-200">Company name</label>
|
|
<input
|
|
id="name"
|
|
name="name"
|
|
value="{{ old('name', $company->name) }}"
|
|
class="mt-2 w-full rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white"
|
|
required
|
|
>
|
|
@error('name')
|
|
<p class="mt-1 text-sm text-red-600 dark:text-red-400">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="billing_email" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-200">Billing email</label>
|
|
<input
|
|
id="billing_email"
|
|
type="email"
|
|
name="billing_email"
|
|
value="{{ old('billing_email', $company->billing_email) }}"
|
|
placeholder="billing@example.com"
|
|
class="mt-2 w-full rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white"
|
|
>
|
|
@error('billing_email')
|
|
<p class="mt-1 text-sm text-red-600 dark:text-red-400">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="status" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-200">Status</label>
|
|
<select
|
|
id="status"
|
|
name="status"
|
|
class="mt-2 w-full rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white"
|
|
required
|
|
>
|
|
<option value="active" @selected(old('status', $company->status) === 'active')>Active</option>
|
|
<option value="suspended" @selected(old('status', $company->status) === 'suspended')>Suspended</option>
|
|
<option value="inactive" @selected(old('status', $company->status) === 'inactive')>Inactive</option>
|
|
</select>
|
|
@error('status')
|
|
<p class="mt-1 text-sm text-red-600 dark:text-red-400">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="timezone" class="block text-sm font-semibold text-zinc-700 dark:text-zinc-200">Timezone</label>
|
|
<input
|
|
id="timezone"
|
|
name="timezone"
|
|
value="{{ old('timezone', $company->timezone ?? 'Europe/London') }}"
|
|
class="mt-2 w-full rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white"
|
|
>
|
|
@error('timezone')
|
|
<p class="mt-1 text-sm text-red-600 dark:text-red-400">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-6 flex flex-wrap items-center gap-3">
|
|
<button class="rounded-xl bg-zinc-900 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-zinc-700 dark:bg-white dark:text-zinc-900">
|
|
Save company
|
|
</button>
|
|
|
|
<a
|
|
href="{{ $company->exists ? route('platform.companies.show', $company) : route('platform.companies.index') }}"
|
|
class="rounded-xl border border-zinc-300 px-4 py-2 text-sm font-semibold text-zinc-700 hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-800"
|
|
>
|
|
Cancel
|
|
</a>
|
|
</div>
|