Move Devices under Settings like Branches and Team.
Deploy Ladill POS / deploy (push) Successful in 29s
Deploy Ladill POS / deploy (push) Successful in 29s
Drop Devices from the main sidebar, surface a Devices card on the Settings page, and nest device routes under /settings/devices with legacy redirects.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<x-app-layout title="Devices">
|
||||
<div class="mx-auto max-w-5xl space-y-6">
|
||||
<div class="flex flex-wrap items-end justify-between gap-4">
|
||||
<div>
|
||||
<p class="text-xs font-semibold uppercase tracking-wider text-indigo-600">Hardware</p>
|
||||
<h1 class="mt-1 text-2xl font-semibold text-slate-900">Devices</h1>
|
||||
<p class="mt-1 text-sm text-slate-500">Register tills, customer screens, kitchen displays, and printers for each branch.</p>
|
||||
<x-settings.page description="Register tills, customer screens, kitchen displays, and printers for each branch.">
|
||||
<div class="mb-4 flex flex-wrap items-center justify-between gap-3 text-sm">
|
||||
<div class="flex flex-wrap items-center gap-1 text-slate-500">
|
||||
<a href="{{ route('pos.settings') }}" class="hover:text-slate-800">Settings</a>
|
||||
<span class="px-1">/</span>
|
||||
<span class="font-medium text-slate-900">Devices</span>
|
||||
</div>
|
||||
<a href="{{ route('pos.devices.create') }}" class="btn-primary">Add device</a>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-3 sm:grid-cols-3">
|
||||
<div class="mb-6 grid gap-3 sm:grid-cols-3">
|
||||
<div class="rounded-2xl border border-slate-200 bg-white px-5 py-4">
|
||||
<p class="text-2xl font-semibold tabular-nums text-slate-900">{{ number_format($heroStats['total']) }}</p>
|
||||
<p class="mt-0.5 text-xs font-medium uppercase tracking-wide text-slate-500">Devices</p>
|
||||
@@ -25,16 +25,13 @@
|
||||
</div>
|
||||
|
||||
@if (session('success'))
|
||||
<div class="rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-800">{{ session('success') }}</div>
|
||||
<div class="mb-4 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-800">{{ session('success') }}</div>
|
||||
@endif
|
||||
@if (session('error'))
|
||||
<div class="rounded-xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-800">{{ session('error') }}</div>
|
||||
<div class="mb-4 rounded-xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-800">{{ session('error') }}</div>
|
||||
@endif
|
||||
|
||||
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
|
||||
<div class="border-b border-slate-100 px-6 py-4">
|
||||
<h2 class="text-sm font-semibold text-slate-900">All devices</h2>
|
||||
</div>
|
||||
<x-settings.card title="All devices" description="Hardware registered to this POS account.">
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-slate-100 text-sm">
|
||||
<thead class="bg-slate-50 text-left text-xs uppercase text-slate-500">
|
||||
@@ -75,8 +72,8 @@
|
||||
</table>
|
||||
</div>
|
||||
@if ($devices->hasPages())
|
||||
<div class="border-t border-slate-100 px-5 py-3">{{ $devices->links() }}</div>
|
||||
<div class="border-t border-slate-100 px-1 pt-3">{{ $devices->links() }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</x-settings.card>
|
||||
</x-settings.page>
|
||||
</x-app-layout>
|
||||
|
||||
Reference in New Issue
Block a user