mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
New voucher CIEFPC30 setup with new business logic
This commit is contained in:
@@ -17,7 +17,7 @@ class UpdatesVoucherCampaign extends AbstractUpdateRecord
|
||||
*/
|
||||
public function execute(VoucherCampaign $model, VoucherCampaignObject $object) {
|
||||
|
||||
$model->name = $object->getName();
|
||||
// $model->name = $object->getName();
|
||||
if($object->getDescription()){
|
||||
$model->description = $object->getDescription();
|
||||
}
|
||||
|
||||
@@ -6,13 +6,16 @@
|
||||
<div id="select-option" name="select-option" class="col b-b b-grey p-t-10 p-b-10 pointer p-t-10 p-b-10" @click="selectVoucher(item)">
|
||||
<div class="row">
|
||||
<div class="col text-left no-padding">{{ item.voucher.code }}</div>
|
||||
<div class="col text-right no-padding" v-if="item.voucher.type == 'AMOUNT'">
|
||||
<div class="col text-right no-padding">
|
||||
<span>{{ item.voucher.name }}</span>
|
||||
</div>
|
||||
<!-- <div class="col text-right no-padding" v-if="item.voucher.type == 'AMOUNT'">
|
||||
RM{{ item.voucher.value/100 }} Discount
|
||||
</div>
|
||||
<div class="col text-right no-padding" v-if="item.voucher.type == 'PERCENT'">
|
||||
<span v-if="item.voucher.value === 1">50% Discount</span>
|
||||
<span v-else>{{ item.voucher.name }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-8 text-left no-padding">
|
||||
|
||||
+3
-2
@@ -15,14 +15,15 @@
|
||||
<p v-if="item.voucher && item.voucher.is_redeemed" class="text-secondary">{{ item.voucher.code }}</p>
|
||||
<p v-else class="text-primary">{{ item.voucher.code }}</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-4"></div>
|
||||
<!-- <div class="col-md-4">
|
||||
<p v-if="item.voucher.type == 'AMOUNT'">RM{{ item.voucher.value / 100 }} Discount</p>
|
||||
<p v-if="item.voucher.type == 'PERCENT'">
|
||||
<span v-if="item.voucher.value === 1">50% discount on service fee only</span>
|
||||
<span v-else-if="item.voucher.value > 0">{{ item.voucher.value }}% Discount</span>
|
||||
<span v-else>Discount</span>
|
||||
</p>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="col-md-1">
|
||||
<a class="pointer requestModal" :data-type="'showVoucherTnC-' + item.id">Terms</a>
|
||||
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" size="extra-large" :type="'showVoucherTnC-' + item.id">
|
||||
|
||||
+1
-1
@@ -7,5 +7,5 @@ Route::group(['prefix' => 'voucher', 'as' => 'voucher.', 'namespace' => 'Voucher
|
||||
Route::post('create', 'CreateVoucherController@create')->name('create');
|
||||
// Route::post('redeem', 'RedeemVoucherController@redeem')->name('redeem');
|
||||
Route::get('/user/list', 'ListUserVouchersController@list')->name('user.list');
|
||||
Route::get('/voucher/camapaigns/list', 'ListVoucherCampaignsController@list')->name('campaigns.list');
|
||||
Route::get('/voucher/campaigns/list', 'ListVoucherCampaignsController@list')->name('campaigns.list');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user