<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Enquiry extends Model
{
    use HasFactory;

    public const STATUSES = ['new', 'contacted', 'resolved', 'spam'];

    public const PRODUCTS = ['mutton-cloth', 'stockinette', 'not-sure', 'other', 'both', 'general'];

    public const TYPES = ['quote', 'sample', 'product-information', 'bulk-order', 'distribution', 'export-enquiry', 'custom-requirement', 'other'];

    protected $fillable = [
        'full_name', 'company_name', 'email', 'phone', 'country',
        'product_interest', 'enquiry_type', 'estimated_quantity', 'application',
        'message', 'consent', 'source_page', 'status',
    ];

    protected function casts(): array
    {
        return ['consent' => 'boolean'];
    }
}
