Skip to main content

General

Auth Footer code

Copy the implementation or inspect every file that belongs to this component unit.

resources/views/components/ui/auth-footer.blade.php

@props([
    'prompt',
    'href',
    'link' => 'Sign in',
])

@php
    /*
    | Centered auth page footer with a secondary navigation link.
    |
    | Usage:
    |   <x-ui.auth-footer
    |       prompt="Don't have an account?"
    |       :href="route('register')"
    |       link="Sign up"
    |   />
    */
@endphp

<p {{ $attributes->merge(['class' => 'mt-6 text-center text-sm text-gray-500 dark:text-gray-400']) }}>
    {{ $prompt }}
    <a href="{{ $href }}" class="font-medium text-gray-900 dark:text-white hover:underline">
        {{ $link }}
    </a>
</p>