Deploy Ladill Mini / deploy (push) Successful in 23s
Staff-facing counter register at pos.ladill.com with catalog cart, cash and MoMo/card checkout via Ladill Pay, CRM timeline/import, invoice prefill, and Merchant catalog import. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
1.3 KiB
PHP
24 lines
1.3 KiB
PHP
<x-app-layout :title="'Edit '.$product->name">
|
|
<div class="mx-auto max-w-lg">
|
|
<a href="{{ route('pos.products.index') }}" class="text-sm text-slate-500 hover:text-slate-700">← Products</a>
|
|
<h1 class="mt-2 text-lg font-semibold text-slate-900">Edit product</h1>
|
|
|
|
<form method="POST" action="{{ route('pos.products.update', $product) }}" class="mt-5 space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
|
|
@csrf
|
|
@method('PUT')
|
|
@include('pos.products._form')
|
|
<div class="flex justify-between gap-3 pt-2">
|
|
<form method="POST" action="{{ route('pos.products.destroy', $product) }}" onsubmit="return confirm('Delete this product?')">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit" class="text-sm font-medium text-red-600 hover:text-red-700">Delete</button>
|
|
</form>
|
|
<div class="flex gap-3">
|
|
<a href="{{ route('pos.products.index') }}" class="rounded-xl px-4 py-2 text-sm text-slate-600 hover:bg-slate-100">Cancel</a>
|
|
<button type="submit" class="btn-primary">Save</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</x-app-layout>
|