<?php

namespace App\Http\Resources\Admin;

use Illuminate\Http\Resources\Json\JsonResource;

class AdvertismentTypeResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'ad_network_ar' => $this->ad_network_ar,
            'ad_network_en' => $this->ad_network_en,
            'is_active' => (bool) $this->is_active,
            'publisher_id' => $this->publisher_id,
        ];
    }
}
