<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            {{ __('Dashboard') }}
        </h2>
    </x-slot>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
                <div class="p-6 text-gray-900">
                    {{ __("You're logged in!") }}
                </div>
            </div>

            {{-- Role-based Buttons --}}
            <div class="mt-6 p-6 bg-white shadow-sm sm:rounded-lg">
                @php $role = auth()->user()->role->name; @endphp

                @if ($role === 'Admin')
                    <a href="{{ route('admin.ActivitiesAttendedResponses') }}" 
                       class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
                        Go to Admin Responses
                    </a>
                @elseif ($role === 'Coordinator')
                    <a href="{{ route('coordinator.ActivitiesAttendedResponses') }}" 
                       class="px-4 py-2 bg-green-500 text-white rounded hover:bg-green-600">
                        Go to Coordinator Responses
                    </a>
                @elseif ($role === 'Faculty')
                    <a href="{{ route('faculty.ActivitiesAttendedForm') }}" 
                       class="px-4 py-2 bg-purple-500 text-white rounded hover:bg-purple-600">
                        Go to Faculty Response Form
                    </a>
                @endif
            </div>
        </div>
    </div>
</x-app-layout>
