Files
isaaccladandCursor e5d2b84388
Deploy Ladill Mini / deploy (push) Successful in 23s
Add Ladill POS v1 — register, Pay checkout, and commerce links.
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>
2026-06-23 22:52:24 +00:00

39 lines
2.0 KiB
PHP

<x-app-layout title="Sales">
<div class="space-y-5">
<div class="flex items-center justify-between">
<h1 class="text-lg font-semibold text-slate-900">Sales</h1>
<a href="{{ route('pos.register') }}" class="btn-primary">New sale</a>
</div>
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
<table class="min-w-full text-sm">
<thead class="bg-slate-50 text-left text-xs uppercase tracking-wide text-slate-500">
<tr>
<th class="px-4 py-3">Reference</th>
<th class="px-4 py-3">Status</th>
<th class="px-4 py-3">Method</th>
<th class="px-4 py-3 text-right">Total</th>
<th class="px-4 py-3">Date</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-100">
@forelse ($sales as $sale)
<tr class="hover:bg-slate-50 cursor-pointer" onclick="window.location='{{ route('pos.sales.show', $sale) }}'">
<td class="px-4 py-3 font-medium text-slate-900">{{ $sale->reference }}</td>
<td class="px-4 py-3 capitalize">{{ $sale->status }}</td>
<td class="px-4 py-3 capitalize">{{ $sale->payment_method }}</td>
<td class="px-4 py-3 text-right">{{ pos_money($sale->total_minor, $sale->currency) }}</td>
<td class="px-4 py-3 text-slate-500">{{ $sale->created_at->format('M j, Y g:i A') }}</td>
</tr>
@empty
<tr><td colspan="5" class="px-4 py-8 text-center text-slate-500">No sales yet.</td></tr>
@endforelse
</tbody>
</table>
@if ($sales->hasPages())
<div class="border-t border-slate-100 px-4 py-3">{{ $sales->links() }}</div>
@endif
</div>
</div>
</x-app-layout>