Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lang/en/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
|
*/

'sign_in' => 'Sign in',
'failed' => 'These credentials do not match our records.',
'password' => 'The provided password is incorrect.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
Expand Down
26 changes: 20 additions & 6 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,26 @@ class="p-2 rounded-md transition-all"
</button>
</div>

<x-filament::button
href="{{ url('/admin') }}"
tag="a"
>
Admin Panel
</x-filament::button>
@auth
<x-filament::button
href="{{ url('/admin') }}"
icon="tabler-layout-dashboard"
iconButton="true"
tag="a"
size="lg"
>
{{ __('general.admin') }}
</x-filament::button>
@else
<x-filament::button
href="{{ url('/login') }}"
icon="tabler-login"
tag="a"
size="lg"
>
{{ __('auth.sign_in') }}
</x-filament::button>
@endauth
</div>
</header>

Expand Down
16 changes: 9 additions & 7 deletions resources/views/livewire/latest-result-stats.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
<p class="mt-1 text-sm font-medium text-zinc-600 dark:text-zinc-400">{{ $this->latestResult->created_at->format(config('app.datetime_format')) }}</p>
</div>

<x-filament::button
href="{{ url('admin/results') }}"
tag="a"
size="sm"
>
{{ __('general.view') }}
</x-filament::button>
@auth
<x-filament::button
href="{{ url('admin/results') }}"
tag="a"
size="sm"
>
{{ __('general.view') }}
</x-filament::button>
@endauth
</div>
</div>

Expand Down
Loading