| @@ -10,9 +10,8 @@ | ||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace SpringDevs\Subscription\Admin; |
| 13 | 13 | |
| 14 | -use SpringDevs\Subscription\Illuminate\Helper; | |
| 15 | 14 | use SpringDevs\Subscription\Illuminate\Plans\PlanRepository; |
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * Plan presenter. |
| @@ -151,9 +150,8 @@ | ||
| 151 | 150 | 'base_price' => ( $product && ! $is_variable ) ? self::money( (float) $product->get_price() ) : '', |
| 152 | 151 | 'one_time_on' => $product ? ( 'yes' === $product->get_meta( '_subscrpt_one_time_enabled' ) ) : false, |
| 153 | 152 | 'ot_regular' => ( $product && ! $is_variable ) ? self::one_time_price( $product ) : '', |
| 154 | 153 | 'ot_offer' => ( $product && ! $is_variable ) ? (string) $product->get_sale_price() : '', |
| 155 | - 'user_cancel' => $product ? Helper::can_user_cancel( $product->get_meta( '_subscrpt_user_cancel' ) ) : true, | |
| 156 | 154 | 'edit_url' => get_edit_post_link( $oid, 'raw' ), |
| 157 | 155 | 'view_url' => get_permalink( $oid ), |
| 158 | 156 | 'rows' => array(), |
| 159 | 157 | 'variations' => array(), |