@php
$spinTemplate = json_decode(setting('ai_writer_spin_template'), true);
$spinTemplate = collect($spinTemplate)->reject(function ($item) {
return ! $item['title'] || ! $item['content'];
})->toArray();
@endphp
{{ trans('plugins/ai-writer::ai-writer.generate') }}
@empty(!$spinTemplate)
{{ trans('plugins/ai-writer::ai-writer.spin') }}
@endempty
@pushonce('footer')
@include('plugins/ai-writer::generate-content')
{{ trans('core/base::tables.cancel') }}
{{ trans('plugins/ai-writer::ai-writer.form.generate') }}
{{ trans('plugins/ai-writer::ai-writer.form.push') }}
@empty(!$spinTemplate)
@include('plugins/ai-writer::spin-content')
{{ trans('core/base::tables.cancel') }}
{{ trans('plugins/ai-writer::ai-writer.form.spin') }}
{{ trans('plugins/ai-writer::ai-writer.form.push') }}
@endempty
@endpushonce