Surface branches and team as explicit settings sections.
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>
This commit is contained in:
isaacclad
2026-07-08 06:46:17 +00:00
co-authored by Cursor
parent afca49039b
commit 35970dfd2a
10 changed files with 176 additions and 43 deletions
+10 -15
View File
@@ -1,19 +1,6 @@
<x-app-layout title="Settings">
<x-settings.page description="Branch settings, receipt footer, and catalog imports.">
<div class="mb-4 flex flex-wrap items-center justify-between gap-3">
<p class="text-sm text-slate-600">
Editing <span class="font-semibold text-slate-900">{{ $location->name }}</span>
</p>
<div class="flex flex-wrap gap-3 text-sm">
@if (! empty($canManageBranches))
<a href="{{ route('pos.branches.index') }}" class="font-medium text-indigo-600 hover:text-indigo-800">Branches</a>
@endif
@if (! empty($canManageTeam))
<a href="{{ route('pos.team.index') }}" class="font-medium text-indigo-600 hover:text-indigo-800">Team</a>
@endif
</div>
</div>
<x-settings.card title="Branch settings" description="Register name, currency, service style, and receipt footer for this branch.">
<x-settings.page description="Configure this branch, manage locations, and invite team members.">
<x-settings.card title="This branch" description="Register name, currency, service style, and receipt options for {{ $location->name }}.">
<form method="POST" action="{{ route('pos.settings.update') }}" enctype="multipart/form-data" class="space-y-4">
@csrf
@method('PUT')
@@ -98,6 +85,14 @@
</form>
</x-settings.card>
<div class="mt-6 space-y-6">
@include('pos.settings._branches-section')
@if (! empty($canManageTeam))
@include('pos.settings._team-section')
@endif
</div>
@if ($location->isRestaurant())
<x-settings.card title="Import catalog" description="Seed your local POS catalog from CRM or Merchant storefronts. (Retail mode reads products live from CRM, so no import is needed.)">
<div class="flex flex-wrap gap-3">