{{ Form::bsBoxOpen('Thông tin chung') }}
{{ 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)
- {{getCurrency()}}
@endforeach @else
- {{getCurrency()}}
@endif
@if($quantityBreak->discount_type == 2 && !empty($quantityBreak->discounts)) @foreach(json_decode($quantityBreak->discounts) as $key => $value)
- %
@endforeach @else
- %
@endif
@if($quantityBreak->discount_type == 3 && !empty($quantityBreak->discounts)) @foreach(json_decode($quantityBreak->discounts) as $key => $value)
- {{getCurrency()}}
@endforeach @else
- {{getCurrency()}}
@endif
{{ 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', []) }} @if(!empty(@$products)) @foreach($products as $product) @endforeach @endif
Hình Tên sản phẩm Đơn giá
{{$product->title}} {{$product->price}}
{{ 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') }}
is_never_expires == 1) ? 'disabled' : ''}}/>
{{ Form::bsBoxClose() }}
@section('scripts') @parent {{ Html::script(config('app.assets_url').'/backend/js/pages/form_layouts.js') }} @endsection