19 lines
551 B
PHP
19 lines
551 B
PHP
<div>
|
|
<button
|
|
wire:click="handleExportCSV"
|
|
class="btn"
|
|
style="background: rgb(231, 70, 16); border-color: rgb(231, 70, 16); color: #fff;"
|
|
wire:loading.attr="disabled"
|
|
>
|
|
@if($loading)
|
|
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
|
Exporting...
|
|
@else
|
|
Export CSV
|
|
@endif
|
|
</button>
|
|
|
|
@if(session()->has('error'))
|
|
<div class="alert alert-danger mt-2">{{ session('error') }}</div>
|
|
@endif
|
|
</div> |