diff --git a/app/Http/Controllers/Account/AcceptanceController.php b/app/Http/Controllers/Account/AcceptanceController.php index 8726c058c0..22567985e7 100644 --- a/app/Http/Controllers/Account/AcceptanceController.php +++ b/app/Http/Controllers/Account/AcceptanceController.php @@ -132,16 +132,11 @@ class AcceptanceController extends Controller // this is horrible - if ($acceptance->checkoutable_type== 'App\Models\Asset') { + if ($acceptance->checkoutable_type == 'App\Models\Asset') { $pdf_view_route ='account.accept.accept-asset-eula'; $asset_model = AssetModel::find($item->model_id); $display_model = $asset_model->name; - - -// } elseif ($acceptance->checkoutable_type== 'App\Models\License') { -// $pdf_view_route ='account.accept.accept-license-eula'; -// $license = License::find($item->id); -// $display_model = $license->name; + $assigned_to = User::find($item->assigned_to); } elseif ($acceptance->checkoutable_type== 'App\Models\Accessory') { $pdf_view_route ='account.accept.accept-accessory-eula'; @@ -149,11 +144,6 @@ class AcceptanceController extends Controller $display_model = $accessory->name; $assigned_to = User::find($item->assigned_to); -// } elseif ($acceptance->checkoutable_type== 'App\Models\Consumable') { -// $pdf_view_route ='account.accept.accept-consumable-eula'; -// $consumable = Consumable::find($item->id); -// $display_model = $consumable->name; - } /**