Files
ladill-woo-manager/resources/views/woo/stores/index.blade.php
T
isaaccladandCursor ffe0b9d877
Deploy Ladill Woo Manager / deploy (push) Failing after 2s
Scaffold Ladill Woo Manager for WooCommerce order fulfillment.
Standalone app with SSO shell, WordPress plugin connect flow, webhook ingest,
fulfillment inbox, and plugin activation API — no payment processing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 22:39:38 +00:00

40 lines
2.3 KiB
PHP

<x-user-layout>
<x-slot name="title">Stores</x-slot>
<div class="space-y-6">
<div>
<h1 class="text-xl font-semibold text-slate-900">Stores</h1>
<p class="mt-1 text-sm text-slate-500">WooCommerce sites connected via the Ladill plugin.</p>
</div>
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
@if($stores->isEmpty())
<p class="px-6 py-10 text-sm text-slate-500">No stores connected yet.</p>
@else
<div class="divide-y divide-slate-100">
@foreach($stores as $store)
<div class="flex flex-wrap items-center justify-between gap-4 px-6 py-5">
<div>
<p class="font-semibold text-slate-900">{{ $store->site_name ?? parse_url($store->site_url, PHP_URL_HOST) }}</p>
<p class="text-sm text-slate-500">{{ $store->site_url }}</p>
<p class="mt-1 text-xs text-slate-400">
Status: {{ ucfirst($store->status) }}
@if($store->connected_at)· Connected {{ $store->connected_at->diffForHumans() }}@endif
</p>
</div>
<div class="flex items-center gap-3">
<code class="hidden rounded-lg bg-slate-50 px-2 py-1 text-xs text-slate-600 sm:inline">{{ $store->webhookUrl() }}</code>
@if($store->status === \App\Models\WooStore::STATUS_ACTIVE)
<form method="post" action="{{ route('woo.stores.destroy', $store) }}" onsubmit="return confirm('Disconnect this store?')">
@csrf @method('delete')
<button type="submit" class="rounded-lg border border-red-200 px-3 py-1.5 text-xs font-semibold text-red-600 hover:bg-red-50">Disconnect</button>
</form>
@endif
</div>
</div>
@endforeach
</div>
@endif
</div>
</div>
</x-user-layout>