{{ Form::bsBoxOpen('Thông tin chung') }}
Tên khuyến mãi (*)
{{ Form::bsSelect('Hình thức giảm giá', 'discount_type', $discount_types, $quantityBreak->discount_type, ['id' => 'selectDiscountType', 'class' => 'select'])}} {{ Form::bsBoxClose()}}
{{ Form::bsBoxOpen('Thông tin giảm giá') }}
@if($quantityBreak->discount_type == 1 && !empty($quantityBreak->discounts)) @foreach(json_decode($quantityBreak->discounts) as $key => $value)
Số lượng
Mức giảm
-
{{getCurrency()}}
@endforeach @else
Số lượng
Mức giảm
-
{{getCurrency()}}
@endif
Thêm giảm giá
@if($quantityBreak->discount_type == 2 && !empty($quantityBreak->discounts)) @foreach(json_decode($quantityBreak->discounts) as $key => $value)
Số lượng
Mức giảm
-
%
@endforeach @else
Số lượng
Mức giảm
-
%
@endif
Thêm giảm giá
@if($quantityBreak->discount_type == 3 && !empty($quantityBreak->discounts)) @foreach(json_decode($quantityBreak->discounts) as $key => $value)
Số lượng
Giá bán còn lại
-
{{getCurrency()}}
@endforeach @else
Số lượng
Giá bán còn lại
-
{{getCurrency()}}
@endif
Thêm giảm giá
{{ Form::bsBoxClose()}} {{ Form::bsBoxOpen('Cấp hình áp dụng') }}
{{ Form::bsRadio('Khi mua sản phẩm thuộc', 'apply_for', ['all'=>'Tất cả sản phẩm', 'product_group'=>'Nhóm sản phẩm', 'category'=>'Danh mục', 'product'=>'Sản phẩm cụ thể'],$quantityBreak->apply_for, [], 'required') }}
{{ Form::bsBoxClose() }}
Áp dụng
{{ Form::bsSelectItem('Chọn sản phẩm', 'product_select', 'product', []) }}
Hình
Tên sản phẩm
Đơn giá
@if(!empty(@$products)) @foreach($products as $product)
{{$product->title}}
{{$product->price}}
@endforeach @endif
{{ Form::bsSelectCategoryTree('Chọn thể loại','cat_id',['taxonomy'=>'product','lang_code'=>$lang_code], $quantityBreak->apply_ids) }}
{{ Form::bsSelect('Chọn nhóm sản phẩm','group_id', $list_product_groups, $quantityBreak->apply_ids) }}
{{ Form::bsBoxOpen('Thời gian áp dụng') }}
Ngày bắt đầu
Ngày kết thúc
is_never_expires == 1) ? 'disabled' : ''}}/>
is_never_expires == 1) ? 'checked' : ''}}> Không bao giờ kết thúc
{{ Form::bsBoxClose() }}
@section('scripts') @parent {{ Html::script(config('app.assets_url').'/backend/js/pages/form_layouts.js') }} @endsection