<x-app-layout>
    <x-slot name="header">
        <div class="flex items-center justify-between">
            <h2 class="font-semibold text-xl text-gray-800 leading-tight">
                {{ __('Users') }}
            </h2>
            
            <div class="flex items-center gap-2">
                <a href="{{ route('admin.roles') }}" class="btn btn-outline btn-sm gap-1" wire:navigate>
                    <x-heroicon-o-shield-check class="w-4 h-4" /> {{ __('Roles & permissions') }}
                </a>
                <a href="{{ route('admin.users.create') }}" class="btn btn-primary btn-sm gap-1" wire:navigate>
                    <x-heroicon-o-plus class="w-4 h-4" /> {{ __('New user') }}
                </a>
            </div>

        </div>
    </x-slot>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white rounded-lg shadow p-6">
                <livewire:users.user-table />
            </div>
        </div>
    </div>
</x-app-layout>