skeleton for import export

This commit is contained in:
hackerESQ
2024-08-07 19:00:56 -05:00
parent 991d484152
commit 838f093ae5
3 changed files with 51 additions and 6 deletions
+4 -6
View File
@@ -14,8 +14,7 @@
<!-- Name -->
<div class="col-span-6 sm:col-span-4">
{{-- <x-file wire:model="file" label="Receipt" hint="Only PDF" accept="application/pdf" /> --}}
<input type="file" />
@livewire('import-portfolios-field')
</div>
</x-slot>
@@ -23,7 +22,7 @@
<x-slot name="actions">
<x-button type="submit">
{{ __('Save') }}
{{ __('Import') }}
</x-button>
</x-slot>
</x-forms.form-section>
@@ -45,9 +44,8 @@
<!-- Name -->
<div class="col-span-6 sm:col-span-4">
<x-button type="submit">
{{ __('Download Export') }}
</x-button>
@livewire('export-portfolios-button')
</div>
@@ -0,0 +1,26 @@
<?php
use Livewire\Volt\Component;
use Mary\Traits\Toast;
new class extends Component {
use Toast;
// props
// methods
public function mount()
{
//
}
}; ?>
<div>
<x-button type="submit">
{{ __('Download Export') }}
</x-button>
</div>
@@ -0,0 +1,21 @@
<?php
use Livewire\Volt\Component;
use Mary\Traits\Toast;
new class extends Component {
use Toast;
// props
public $file;
// methods
public function mount()
{
//
}
}; ?>
<x-file wire:model="file" label="Select a file" hint="" accept="application/pdf" required />