diff --git a/app/controller/api/Comment.php b/app/controller/api/Comment.php new file mode 100644 index 0000000..6fb3d1a --- /dev/null +++ b/app/controller/api/Comment.php @@ -0,0 +1,22 @@ +hasOne(Business::class, 'agency_code', "code"); + return $this->hasOne(self::class,"code","agency_code"); } + public function account() { return $this->hasOne(Account::class, 'business_code',"code"); } - public function agency() - { - return $this->hasOne(self::class,"code","agency_code"); - } + + } diff --git a/view/manager/coupon/add.html b/view/manager/coupon/add.html index 53e645c..c8094a2 100644 --- a/view/manager/coupon/add.html +++ b/view/manager/coupon/add.html @@ -90,13 +90,66 @@ +
+