Download resources/views/default/components/trash-button.blade.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/trash-button.blade.php
- Command line
-
hf download hf://pnacorp/magicai/resources/views/default/components/trash-button.blade.php
-
curl -L -o trash-button.blade.php https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/trash-button.blade.php
596 Bytes
| @php | |
| $base_class = 'lqd-fav-btn z-10 size-9'; | |
| @endphp | |
| <x-button | |
| id="fav-btn-{{ $id }}" | |
| {{ $attributes->withoutTwMergeClasses()->twMerge($base_class, $attributes->get('class')) }} | |
| size="none" | |
| variant="ghost-shadow" | |
| @click.prevent="$ajax('{{ $deleteUrl }}', { | |
| method: 'post', | |
| body: { _token: '{{ csrf_token() }}', id: {{ $id }} }, | |
| events: true, | |
| })" | |
| @ajax:missing="$event.preventDefault()" | |
| @ajax:after="document.getElementById('lqd-prompt-list').removeChild($el.parentElement)" | |
| href="#" | |
| title="{{ __('Delete') }}" | |
| > | |
| <x-tabler-trash /> | |
| </x-button> | |