Product Model optimisation

This commit is contained in:
2023-05-05 10:32:04 +10:00
parent 0f91ce4940
commit 96f799f535
13 changed files with 145 additions and 115 deletions

View File

@@ -9,10 +9,10 @@ Please order the following...
| Service ID | {{ $service->sid }} |
| Product | {{ $service->product->name }} |
@switch($service->category)
@case('Broadband')
@case('broadband')
| Address | {{ $service->type->service_address }} |
@break;
@case('Phone')
@case('telephone')
| Number | {{ $service->type->service_number }} |
| Supplier Details | {{ $service->order_info->join(':') }} |
@break;

View File

@@ -10,10 +10,10 @@
| Service ID | {{ $service->sid }} |
| Product | {{ $service->product->name }} |
@switch($service->category)
@case('BROADBAND')
@case('broadband')
| Address | {{ is_object($service->type) ? $service->type->service_address : 'Not Supplied' }} |
@break;
@case('PHONE')
@case('telephone')
| Address | {{ is_object($service->type) ? $service->type->service_address : 'Not Supplied' }} |
| Supplier Details | {{ join(':',$service->order_info) }} |
@break;

View File

@@ -12,7 +12,7 @@ Please cancel the following...
@case('broadband')
| Address | {{ $service->type->service_address }} |
@break;
@case('phone')
@case('telephone')
| Number | {{ $service->type->service_number }} |
| Supplier Details | {{ $service->order_info->join(':') }} |
@break;

View File

@@ -9,10 +9,10 @@ Please change the following...
| Service ID | {{ $service->sid }} |
| Product | {{ $service->product->name }} |
@switch($service->category)
@case('Broadband')
@case('broadband')
| Address | {{ $service->type->service_address }} |
@break;
@case('Phone')
@case('telephone')
| Number | {{ $service->type->service_number }} |
| Supplier Details | {{ $service->order_info->join(':') }} |
@break;