Files
ladill-frontdesk/resources/views/frontdesk/hosts/create.blade.php
T
isaaccladandCursor 33b6070207
Deploy Ladill Frontdesk / deploy (push) Successful in 44s
Add freemium plans, wallet-billed host notifications, and Pro upgrades.
Host alerts use email/phone on the host record without requiring a Ladill
account link; SMS and over-quota emails debit the org wallet at platform rates.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 02:00:26 +00:00

45 lines
2.5 KiB
PHP

<x-app-layout title="Add host">
<div class="mx-auto max-w-lg">
<h1 class="text-xl font-semibold text-slate-900">Add host</h1>
<form method="POST" action="{{ route('frontdesk.hosts.store') }}" class="mt-6 space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
@csrf
<div>
<label class="block text-sm font-medium text-slate-700">Name</label>
<input type="text" name="name" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
</div>
<div class="grid gap-4 sm:grid-cols-2">
<div>
<label class="block text-sm font-medium text-slate-700">Department</label>
<input type="text" name="department" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
</div>
<div>
<label class="block text-sm font-medium text-slate-700">Office</label>
<input type="text" name="office" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
</div>
</div>
<div class="grid gap-4 sm:grid-cols-2">
<div>
<label class="block text-sm font-medium text-slate-700">Email</label>
<input type="email" name="email" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
<p class="mt-1 text-xs text-slate-500">Used for arrival alerts when email notifications are enabled.</p>
</div>
<div>
<label class="block text-sm font-medium text-slate-700">Phone</label>
<input type="tel" name="phone" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
<p class="mt-1 text-xs text-slate-500">Used for SMS alerts when SMS is enabled in settings.</p>
</div>
</div>
<div>
<label class="block text-sm font-medium text-slate-700">Branch</label>
<select name="branch_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
<option value="">All branches</option>
@foreach ($branches as $branch)
<option value="{{ $branch->id }}">{{ $branch->name }}</option>
@endforeach
</select>
</div>
<button type="submit" class="btn-primary w-full">Save host</button>
</form>
</div>
</x-app-layout>