Deploy Ladill Queue / deploy (push) Successful in 50s
Match Frontdesk: settings cards and nested routes, Pro-gated access, and legacy /admin redirects to /settings/branches and /settings/team.
40 lines
2.3 KiB
PHP
40 lines
2.3 KiB
PHP
<x-app-layout title="Add branch">
|
|
<x-settings.page title="Add branch" description="Create a new location for queues, counters, and staff.">
|
|
<div class="mb-4 flex flex-wrap items-center gap-2 text-sm">
|
|
<a href="{{ route('qms.settings.edit') }}" class="text-slate-500 hover:text-slate-800">Settings</a>
|
|
<span class="text-slate-300">/</span>
|
|
<a href="{{ route('qms.branches.index') }}" class="text-slate-500 hover:text-slate-800">Branches</a>
|
|
<span class="text-slate-300">/</span>
|
|
<span class="font-medium text-slate-900">Add</span>
|
|
</div>
|
|
|
|
@include('partials.flash')
|
|
|
|
<x-settings.card title="Branch details">
|
|
<form method="POST" action="{{ route('qms.branches.store') }}" class="space-y-4">
|
|
@csrf
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Name</label>
|
|
<input type="text" name="name" value="{{ old('name') }}" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Code</label>
|
|
<input type="text" name="code" value="{{ old('code') }}" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Address</label>
|
|
<input type="text" name="address" value="{{ old('address') }}" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700">Phone</label>
|
|
<input type="tel" name="phone" value="{{ old('phone') }}" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div class="flex justify-end gap-3">
|
|
<a href="{{ route('qms.branches.index') }}" 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">Save</button>
|
|
</div>
|
|
</form>
|
|
</x-settings.card>
|
|
</x-settings.page>
|
|
</x-app-layout>
|