<?php

namespace App\Models\Tenant;

use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Labor extends Model
{
    use BelongsToTenant, SoftDeletes;

    public const CATEGORIES = [
        'Motor', 'Frâne', 'Suspensie', 'Anvelope', 'ITP', 'Cutie viteze',
        'Caroserie', 'Electrică', 'Climatizare', 'Eșapament', 'Altele',
    ];

    protected $fillable = [
        'company_id', 'category', 'name_ro', 'name_ru', 'code',
        'hours', 'price', 'is_active', 'notes',
    ];

    protected $casts = [
        'hours' => 'decimal:2',
        'price' => 'decimal:2',
        'is_active' => 'boolean',
    ];
}
