public function check_saleprice(Request $request)
 {
     if (!$this->hasPermission($this->menuPermissionName)) {
         return view($this->viewPermissiondeniedName);
     }
     $input = $request->only('id', 'saleprice');
     $model = Giveaway::find($input['id']);
     if ($model->saleprice > $input['saleprice']) {
         return $model->saleprice;
     }
 }
 public function calculateaccessoriesfee($giveawayids)
 {
     $fee = 0;
     $ids = explode(",", $giveawayids);
     foreach ($ids as $id) {
         $model = Giveaway::find($id);
         $fee += $model->saleprice;
     }
     return $fee;
 }