Files
ladill-frontdesk/resources/views/frontdesk/admin/members/index.blade.php
T
isaaccladandCursor e7f1cb1e5c
Deploy Ladill Frontdesk / deploy (push) Successful in 25s
Align Frontdesk buttons and accents with sibling Ladill apps.
Replace inline teal button classes with shared btn-primary and indigo nav/link styling used by CRM and POS.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 21:23:14 +00:00

32 lines
1.7 KiB
PHP

<x-app-layout title="Team members">
<div class="flex items-center justify-between">
<h1 class="text-xl font-semibold text-slate-900">Team members</h1>
<a href="{{ route('frontdesk.members.create') }}" class="btn-primary">Add member</a>
</div>
<div class="mt-4 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 text-slate-500">
<tr><th class="px-4 py-3">User ID</th><th class="px-4 py-3">Role</th><th class="px-4 py-3">Branch</th><th class="px-4 py-3"></th></tr>
</thead>
<tbody class="divide-y divide-slate-50">
@foreach ($members as $member)
<tr>
<td class="px-4 py-3 font-mono text-xs">{{ $member->user_ref }}</td>
<td class="px-4 py-3">{{ $roles[$member->role] ?? $member->role }}</td>
<td class="px-4 py-3">{{ $member->branch?->name ?? 'All branches' }}</td>
<td class="px-4 py-3 text-right">
@if ($member->user_ref !== auth()->user()->public_id)
<form method="POST" action="{{ route('frontdesk.members.destroy', $member) }}" class="inline" onsubmit="return confirm('Remove this member?')">
@csrf @method('DELETE')
<button type="submit" class="text-red-600">Remove</button>
</form>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</x-app-layout>