Files
ladill-pos/resources/views/pos/products/edit.blade.php
T
isaacclad 3337e915eb
Deploy Ladill POS / deploy (push) Successful in 1m7s
Replace native confirms with Ladill custom dialogs.
2026-07-24 20:55:43 +00:00

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">&larr; 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) }}" data-confirm="Delete this product?" data-confirm-title="Delete this product?" data-confirm-label="Delete">
@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>