<?php

namespace App\Http\Resources\Website;

use App\Http\Resources\Base\TranslatableResource;

class AnimatedImageResource extends TranslatableResource
{
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'image' => asset('storage/' . $this->image),
            'description' => $this->translate('description'),
            'alt' => $this->translate('alt'),
        ];
    }
}
