Skip to content

Commit 3e6feaa

Browse files
committed
fix:colors for products
1 parent def60fa commit 3e6feaa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

resources/views/backend/product/addProduct.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ class="mdi mdi-swap-horizontal bg-blue px-xxl-3 px-2 text-white font-18"
101101
{{-- Feat Template --}}
102102
<div class="row d-none" id="feat-template">
103103
<div class="col-md-6">
104-
<x-backend.form.text-input label="Package Feature" type="test"
104+
<x-backend.form.text-input disabled label="Package Feature" type="test"
105105
name="package_feature[]">
106106
</x-backend.form.text-input>
107107
</div>
108108
<div class="col-md-6">
109109
<div class="mb-2">
110110
<label for="color" class="form-label mb-0">Color</label>
111-
<select class="form-select" id="color" name="color[]">
111+
<select class="form-select" disabled id="color" name="color[]">
112112
<option value="#282e38" selected>Black</option>
113113
<option value="#1abc9c">Green</option>
114114
<option value="#f1556c">Red</option>

resources/views/backend/product/editProduct.blade.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
<div class="d-flex align-items-center justify-content-center border shadow-sm rounded"
6060
style="overflow: hidden;">
6161
<input type="text" id="is-discount" name="is_discounts_fixed"
62-
:value="$product - > is_discount_fixed" hidden>
62+
:value="$product->is_discount_fixed" hidden>
6363
<input type="number" id="discount-amount" name="discount_amount"
64-
:value="$product - > discount" class="amount border-0 rounded-0 w-100 ps-2"
64+
:value="$product->discount" class="amount border-0 rounded-0 w-100 ps-2"
6565
style="outline:transparent;" placeholder="0" aria-label="Discont">
6666

6767

@@ -111,13 +111,13 @@ class="mdi mdi-swap-horizontal bg-blue px-xxl-3 px-2 text-white font-18"
111111
<div class="row d-none" id="feat-template">
112112
<div class="col-md-6">
113113
<x-backend.form.text-input label="Package Feature" type="test"
114-
name="package_feature[]">
114+
name="package_feature[]" disabled>
115115
</x-backend.form.text-input>
116116
</div>
117117
<div class="col-md-6">
118118
<div class="mb-2">
119119
<label for="color" class="form-label mb-0">Color</label>
120-
<select class="form-select" id="color" name="color[]">
120+
<select class="form-select" disabled id="color" name="color[]">
121121
<option value="#282e38" selected>Black</option>
122122
<option value="#1abc9c">Green</option>
123123
<option value="#f1556c">Red</option>
@@ -126,7 +126,7 @@ class="mdi mdi-swap-horizontal bg-blue px-xxl-3 px-2 text-white font-18"
126126
</div>
127127
</div>
128128
{{-- feat Repeater --}}
129-
<div id="feat-repeater" data-count="1">
129+
<div id="feat-repeater" data-count="{{count(json_decode($product->package_features, true))}}">
130130
@foreach (json_decode($product->package_features) as $feat)
131131
<div class="row">
132132
<div class="col-md-6">

0 commit comments

Comments
 (0)