mirror of
https://github.com/dyzulk/santulitam.git
synced 2026-01-26 13:32:05 +07:00
22 lines
1.2 KiB
PHP
22 lines
1.2 KiB
PHP
<x-filament-breezy::grid-section md=2 :title="__('filament-breezy::default.profile.sanctum.title')" :description="__('filament-breezy::default.profile.sanctum.description')">
|
|
@if($plainTextToken)
|
|
<div class="space-y-2 bg-warning-500">
|
|
<p class="text-sm">{{ __('filament-breezy::default.profile.sanctum.create.message') }}</p>
|
|
<input type="text" disabled @class(['w-full py-1 px-3 rounded-lg bg-gray-100 border-gray-200 dark:bg-gray-700 dark:border-gray-500']) name="plain_text_token" value="{{$plainTextToken}}" />
|
|
<div class="flex items-center justify-between">
|
|
<div class="inline-block text-xs">
|
|
<x-filament-breezy::clipboard-link :data="$plainTextToken" />
|
|
</div>
|
|
<x-filament::button icon="heroicon-s-clipboard-document-check" size="sm" type="button" wire:click="$set('plainTextToken',null)">{{ __('filament-breezy::default.profile.sanctum.copied.label') }}
|
|
</x-filament::button>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
<div style="display: {{ $plainTextToken ? 'none' : '' }}">
|
|
{{ $this->table }}
|
|
</div>
|
|
|
|
</x-filament-breezy::grid-section>
|