@php $isDone = in_array($this->jobStatus, ['completed', 'failed']); $pct = $this->totalRows > 0 ? min(100, (int) round(($this->exportedRows / $this->totalRows) * 100)) : ($this->jobStatus === 'processing' ? 5 : 0); $isRunning = $this->jobId && !$isDone; $allColumns = \Webkul\Exports\ExportManager::PRODUCT_COLUMNS; $customColumns = \Webkul\Exports\ExportManager::CUSTOM_COLUMNS; $channels = \Webkul\Channel\Models\Channel::orderBy('name')->get(); $allChannelIds = $channels->pluck('id')->map(fn($id) => (string)$id)->values()->all(); @endphp
{{-- Progress section --}} @if($this->jobId) @if($isDone) {{ $this->jobStatus === 'completed' ? 'Export Complete' : 'Export Failed' }} @else Exporting Products… @endif @if($isDone && $this->jobStatus === 'completed') {{ number_format($this->exportedRows) }} products exported @if($this->completedAt) — generated {{ $this->completedAt }}@endif @elseif(!$isDone) Processing in the background — you can leave this page and come back. @endif
@if($this->totalRows > 0) {{ number_format($this->exportedRows) }} / {{ number_format($this->totalRows) }} rows @elseif($this->jobStatus === 'pending') Queued… @else Starting… @endif {{ $pct }}%
@if($this->firstError)
{{ $this->firstError }}
@endif
@if($isDone && $this->jobStatus === 'completed') Download CSV @endif @if($isDone) New Export @endif
@endif {{-- Form section --}} @if(!$this->jobId) Export Products Configure your export and download a CSV of your product catalog.
{{-- Filters --}}

Filters

Choose which products to export.

{{-- Spreadsheet column picker --}}

Columns to Export

Each cell is one column in the CSV, in file order. Tick to include.

{{-- Product Columns --}}
Product Columns ({{ count($this->selectedColumns) }}/{{ count($allColumns) }})
@foreach($allColumns as $key => $label)
@php $isRequired = in_array($key, ['company', 'sku']); @endphp
@endforeach
{{-- Custom Fields --}}
Custom Fields ({{ count(array_intersect($this->selectedColumns, array_keys($customColumns))) }}/{{ count($customColumns) }})
@foreach($customColumns as $key => $label)
@endforeach
@if($channels->isNotEmpty())
{{-- Channel Prices --}}
Channel Prices
@foreach($channels as $channel)
@endforeach
{{-- Channel Tax Rates --}}
Channel Tax Rates
@foreach($channels as $channel)
@endforeach
@endif
Start Export
@endif