<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PartnerRegistrationRequest extends Model
{
    protected $fillable = [
        'name',
        'phone',
        'email',
        'partner_type',
        'business_name',
        'city',
        'notes',
        'status',
    ];

    protected $casts = [
        'created_at' => 'datetime',
    ];

    public function getPartnerTypeLabelAttribute(): string
    {
        return match ($this->partner_type) {
            'driver' => 'سائق',
            'restaurant' => 'مطعم',
            'gas_office' => 'مدير مكتب غاز',
            default => $this->partner_type,
        };
    }
}
