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>
51 lines
2.8 KiB
PHP
51 lines
2.8 KiB
PHP
<x-app-layout :title="$sale->reference">
|
|
<div class="mx-auto max-w-2xl space-y-5">
|
|
<a href="{{ route('pos.sales.index') }}" class="text-sm text-slate-500 hover:text-slate-700">← Sales</a>
|
|
|
|
<div class="rounded-2xl border border-slate-200 bg-white p-6">
|
|
<div class="flex flex-wrap items-start justify-between gap-3">
|
|
<div>
|
|
<h1 class="text-lg font-semibold text-slate-900">{{ $sale->reference }}</h1>
|
|
<p class="mt-1 text-sm text-slate-500">{{ $sale->created_at->format('M j, Y g:i A') }}</p>
|
|
</div>
|
|
<span class="rounded-full px-3 py-1 text-xs font-semibold capitalize {{ $sale->status === 'paid' ? 'bg-green-50 text-green-700' : 'bg-amber-50 text-amber-700' }}">
|
|
{{ $sale->status }}
|
|
</span>
|
|
</div>
|
|
|
|
<dl class="mt-5 grid grid-cols-2 gap-4 text-sm">
|
|
<div><dt class="text-slate-400">Payment</dt><dd class="capitalize text-slate-800">{{ $sale->payment_method }}</dd></div>
|
|
<div><dt class="text-slate-400">Total</dt><dd class="font-semibold text-slate-900">{{ pos_money($sale->total_minor, $sale->currency) }}</dd></div>
|
|
@if ($sale->customer_name)
|
|
<div><dt class="text-slate-400">Customer</dt><dd class="text-slate-800">{{ $sale->customer_name }}</dd></div>
|
|
@endif
|
|
</dl>
|
|
|
|
<table class="mt-6 w-full text-sm">
|
|
<thead class="border-b border-slate-100 text-left text-xs uppercase text-slate-400">
|
|
<tr><th class="pb-2">Item</th><th class="pb-2 text-right">Qty</th><th class="pb-2 text-right">Amount</th></tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-slate-50">
|
|
@foreach ($sale->lines as $line)
|
|
<tr>
|
|
<td class="py-2 text-slate-800">{{ $line->name }}</td>
|
|
<td class="py-2 text-right text-slate-600">{{ $line->quantity }}</td>
|
|
<td class="py-2 text-right text-slate-800">{{ pos_money($line->line_total_minor, $sale->currency) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
@if ($sale->location?->receipt_footer)
|
|
<p class="mt-6 border-t border-slate-100 pt-4 text-center text-xs text-slate-500">{{ $sale->location->receipt_footer }}</p>
|
|
@endif
|
|
|
|
@if ($sale->isPaid() && !empty($invoiceUrl))
|
|
<div class="mt-6 border-t border-slate-100 pt-4">
|
|
<a href="{{ $invoiceUrl }}" class="btn-primary inline-flex w-full justify-center">Create invoice</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|