Deploy Ladill POS / deploy (push) Successful in 37s
Embed branch list, switching, and team invites on the main settings page; dedicated routes redirect back with anchors. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
2.2 KiB
PHP
33 lines
2.2 KiB
PHP
<x-app-layout title="Add branch">
|
|
<x-settings.page description="Create a new register location.">
|
|
<x-settings.card title="New branch">
|
|
<form method="POST" action="{{ route('pos.branches.store') }}" class="space-y-4">
|
|
@csrf
|
|
<div>
|
|
<label for="name" class="text-sm font-medium text-slate-700">Branch name</label>
|
|
<input type="text" id="name" name="name" value="{{ old('name') }}" required
|
|
placeholder="e.g. Airport kiosk"
|
|
class="mt-1.5 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
|
|
</div>
|
|
<div>
|
|
<label for="currency" class="text-sm font-medium text-slate-700">Currency</label>
|
|
<input type="text" id="currency" name="currency" value="{{ old('currency', config('pos.default_currency', 'GHS')) }}" maxlength="3" required
|
|
class="mt-1.5 block w-full rounded-xl border-slate-300 text-sm uppercase shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
|
|
</div>
|
|
<div>
|
|
<label for="service_style" class="text-sm font-medium text-slate-700">Service style</label>
|
|
<select id="service_style" name="service_style"
|
|
class="mt-1.5 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
|
|
<option value="retail" @selected(old('service_style') === 'retail')>Retail</option>
|
|
<option value="restaurant" @selected(old('service_style') === 'restaurant')>Restaurant / café</option>
|
|
</select>
|
|
</div>
|
|
<div class="flex justify-end gap-3">
|
|
<a href="{{ route('pos.settings') }}#branches" class="rounded-xl border border-slate-200 px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Cancel</a>
|
|
<button type="submit" class="btn-primary">Create branch</button>
|
|
</div>
|
|
</form>
|
|
</x-settings.card>
|
|
</x-settings.page>
|
|
</x-app-layout>
|