From d7b5d9a2721859d70c392b72dfeabfea486c0a97 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 5 Mar 2022 13:49:50 +1100 Subject: [PATCH] Fix VOIP services from 500 errors --- app/Models/Product/Voip.php | 4 +-- .../a/service/widgets/voip/update.blade.php | 35 +++++++++++++++++++ .../u/service/widgets/voip/details.blade.php | 4 +-- 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 resources/views/theme/backend/adminlte/a/service/widgets/voip/update.blade.php diff --git a/app/Models/Product/Voip.php b/app/Models/Product/Voip.php index 66f6c6f..4e3dfaa 100644 --- a/app/Models/Product/Voip.php +++ b/app/Models/Product/Voip.php @@ -68,7 +68,7 @@ final class Voip extends Type implements ProductItem public function hasUsage(): bool { - return TRUE; + return FALSE; } public function allowance(): Collection @@ -78,7 +78,7 @@ final class Voip extends Type implements ProductItem public function allowance_string(): string { - // TODO: Implement allowance_string() method. + return "(TBA)"; } public function getCostAttribute(): float diff --git a/resources/views/theme/backend/adminlte/a/service/widgets/voip/update.blade.php b/resources/views/theme/backend/adminlte/a/service/widgets/voip/update.blade.php new file mode 100644 index 0000000..e883f0d --- /dev/null +++ b/resources/views/theme/backend/adminlte/a/service/widgets/voip/update.blade.php @@ -0,0 +1,35 @@ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
\ No newline at end of file diff --git a/resources/views/theme/backend/adminlte/u/service/widgets/voip/details.blade.php b/resources/views/theme/backend/adminlte/u/service/widgets/voip/details.blade.php index 41adf57..bf5ec88 100644 --- a/resources/views/theme/backend/adminlte/u/service/widgets/voip/details.blade.php +++ b/resources/views/theme/backend/adminlte/u/service/widgets/voip/details.blade.php @@ -45,8 +45,8 @@ @if($o->service->product->type) - Traffic - {{ $o->service->product->type->allowance_string() }} GB @if(FALSE)(YY GB used month)@endif + Usage + {{ $o->service->product->type->allowance_string() }} Included Calls @endif @if ($o->inContract())