Merge pull request 'Added sticker validation blade file' (#83) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #83
This commit was merged in pull request #83.
This commit is contained in:
@@ -0,0 +1,51 @@
|
|||||||
|
<x-filament::page>
|
||||||
|
<form wire:submit.prevent="create" class="space-y-6">
|
||||||
|
{{-- Form Section --}}
|
||||||
|
<div class="filament-form space-y-6">
|
||||||
|
{{ $this->form }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{-- <livewire:notification-sound /> --}}
|
||||||
|
|
||||||
|
{{-- Livewire Component (Invoice Table) --}}
|
||||||
|
<div class="bg-white shadow rounded-xl p-4">
|
||||||
|
<livewire:sticker-validation :ref-data="$ref_number" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{-- Actions --}}
|
||||||
|
<div class="filament-actions mt-6">
|
||||||
|
<x-filament::actions>
|
||||||
|
@foreach ($this->getFormActions() as $action)
|
||||||
|
{{ $action }}
|
||||||
|
@endforeach
|
||||||
|
</x-filament::actions>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-filament::page>
|
||||||
|
|
||||||
|
{{-- <script>
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
Livewire.on('open-multiple-stickers', ({ urls }) => {
|
||||||
|
let delay = 0;
|
||||||
|
urls.forEach(url => {
|
||||||
|
setTimeout(() => {
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}, delay);
|
||||||
|
delay += 600;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script> --}}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
window.addEventListener('open-stickers-sequence', (event) => {
|
||||||
|
console.log('EVENT RECEIVED');
|
||||||
|
|
||||||
|
event.detail.urls.forEach(url => {
|
||||||
|
window.open(url, '_blank');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
Reference in New Issue
Block a user