diff --git a/app/Deal.php b/app/Deal.php
index fb1f0ab..5678533 100644
--- a/app/Deal.php
+++ b/app/Deal.php
@@ -91,6 +91,17 @@ class Deal
return $this->data['price'];
}
+ /**
+ * @return int
+ */
+ public function getIdCategory(): int
+ {
+ return (int) $this->data['category'];
+ }
+
+ /**
+ * @return string
+ */
public function getCategory(): string
{
return Categories::$categories[$this->data['category']];
diff --git a/resources/views/update.blade.php b/resources/views/update.blade.php
index 944d56f..92eb6cc 100644
--- a/resources/views/update.blade.php
+++ b/resources/views/update.blade.php
@@ -25,7 +25,7 @@