<?php

namespace App\Models\StockManagement;

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

class ImportationType extends Model{
    use HasFactory,Sushi;

    const FK_ID = "importation_type_code";
    const AFTER_INVENTORY = "AFTER_INVENTORY";
    const AFTER_ORDER_RECEIVED = "AFTER_ORDER_RECEIVED";

    protected $rows = [
        ["id" => self::AFTER_INVENTORY,  "name" => "After month end inventory" ,"icon" => "" ],
        ["id" => self::AFTER_ORDER_RECEIVED, "name" => "After receipt of container" ,"icon" => "" ]
    ];


    //GETTERS
    public function getNameAttribute($value){
        return __($value);
    }
}
