<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class TeamMemberResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,

            'full_name' => $this->full_name,
            'slug' => $this->slug,

            'title' => $this->title,
            'department' => $this->department,
            'bio' => $this->bio,

            'image' => $this->image,

            'email' => $this->email,
            'phone' => $this->phone,
            'whatsapp_phone' => $this->whatsapp_phone,

            'linkedin_url' => $this->linkedin_url,
            'instagram_url' => $this->instagram_url,

            'sort_order' => $this->sort_order,
            'is_featured' => $this->is_featured,
        ];
    }
}