<?php

namespace App\Traits;

trait ExportMapImageColumns
{
    public function getImageColumns(): array
    {
        $columns = [
            'images' => 'Image URLs - All',
            'images20' => 'Image URLs - First 20',
        ];

        for ($i = 1; $i <= 20; $i++) {
            $columns["image_$i"] = $i === 1
                ? 'Image URL - 1 (Primary)'
                : "Image URL - $i";
        }

        return $columns;
    }

    public function getImageNonQueryableFields(): array
    {
        $fields = [
            'images',
            'images20'
        ];

        for ($i = 1; $i <= 20; $i++) {
            $fields[] = "image_$i";
        }

        return $fields;
    }
}
