Files
ladill-link/resources/views/links/settings/index.blade.php
T
isaaccladandCursor db6be67f26
Deploy Ladill Link / deploy (push) Successful in 42s
Align Link buttons with platform btn-primary style.
Use indigo pill CTAs and sidebar accents to match Merchant, Give, and other Ladill apps.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 15:00:42 +00:00

49 lines
3.2 KiB
PHP

<x-user-layout>
<x-slot name="title">Settings</x-slot>
<div class="mx-auto max-w-3xl space-y-6">
<div>
<h1 class="text-2xl font-semibold text-slate-900">Settings</h1>
<p class="mt-1 text-sm text-slate-500">Manage your Ladill Link preferences.</p>
</div>
<div class="rounded-xl border border-slate-200 bg-white p-6">
<h2 class="font-semibold text-slate-900">Default short-link domain</h2>
<p class="mt-1 text-sm text-slate-500">Choose which domain new links are shown on. Custom domains must be verified first.</p>
<form method="POST" action="{{ route('link.settings.default-domain') }}" class="mt-4 space-y-3">
@csrf @method('PUT')
<label class="flex items-center gap-3 rounded-lg border border-slate-200 px-4 py-3">
<input type="radio" name="domain" value="platform" @checked(! $defaultDomain) class="text-emerald-600">
<span class="text-sm text-slate-700"><span class="font-medium">{{ $publicDomain }}</span> Ladill default</span>
</label>
@foreach($customDomains->where('status', 'active')->where('ssl_status', 'active') as $domain)
<label class="flex items-center gap-3 rounded-lg border border-slate-200 px-4 py-3">
<input type="radio" name="domain" value="{{ $domain->id }}" @checked($defaultDomain?->id === $domain->id) class="text-emerald-600">
<span class="text-sm text-slate-700"><span class="font-medium">{{ $domain->host }}</span> custom domain</span>
</label>
@endforeach
<button type="submit" class="btn-primary">Save</button>
</form>
<p class="mt-3 text-xs text-slate-500">
<a href="{{ route('link.domains.index') }}" class="font-medium text-emerald-700 hover:underline">Manage custom domains </a>
</p>
</div>
<div class="rounded-xl border border-slate-200 bg-white p-6">
<h2 class="font-semibold text-slate-900">Billing</h2>
<p class="mt-1 text-sm text-slate-500">GHS {{ number_format($pricePerLink, 2) }} per link created. Charged to your Ladill wallet.</p>
<div class="mt-4 flex flex-wrap gap-3">
<a href="{{ route('account.wallet') }}" class="rounded-lg border border-slate-200 px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Wallet</a>
<a href="{{ route('account.billing') }}" class="rounded-lg border border-slate-200 px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Billing history</a>
</div>
</div>
<div class="rounded-xl border border-slate-200 bg-white p-6">
<h2 class="font-semibold text-slate-900">Ladill Account</h2>
<p class="mt-1 text-sm text-slate-500">Profile, security, and platform settings live on your Ladill account.</p>
<a href="{{ ladill_account_url('account-settings') }}" class="mt-4 inline-flex rounded-lg border border-slate-200 px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">
Open account settings
</a>
</div>
</div>
</x-user-layout>