'SMS', 'whatsapp' => 'WhatsApp', 'telegram' => 'Telegram', 'email' => 'Email', 'push' => 'Web Push', ]; public const STATUSES = [ 'sent' => 'Trimis', 'delivered' => 'Livrat', 'failed' => 'Eșuat', 'read' => 'Citit', ]; protected $fillable = [ 'company_id', 'work_order_id', 'client_id', 'channel', 'template_key', 'message_text', 'status', 'error_detail', 'sent_at', 'delivered_at', ]; protected $casts = [ 'sent_at' => 'datetime', 'delivered_at' => 'datetime', ]; public function workOrder(): BelongsTo { return $this->belongsTo(WorkOrder::class); } public function client(): BelongsTo { return $this->belongsTo(Client::class); } }