public function getPricing()
 {
     $priceMethod = SiteConfig::whereParameter('priceMethod')->first();
     if ($priceMethod->data == 'fixedRatio') {
         $prices = SiteConfig::where('parameter', 'LIKE', '%Price')->get();
     } else {
         if ($priceMethod->data == 'elementPrice') {
             $prices = ElementPrice::whereActive('1')->get();
         }
     }
     return response()->json(['priceMethod' => $priceMethod->data, 'prices' => $prices->toArray()]);
 }
 public function destroy($id)
 {
     $ep = ElementPrice::findOrFail($id);
     $ep->delete();
     return 1;
 }