diff --git a/packages/Webkul/BookingProduct/src/Models/BookingProduct.php b/packages/Webkul/BookingProduct/src/Models/BookingProduct.php index 0f20d30c0..514b0f150 100644 --- a/packages/Webkul/BookingProduct/src/Models/BookingProduct.php +++ b/packages/Webkul/BookingProduct/src/Models/BookingProduct.php @@ -8,7 +8,7 @@ use Webkul\BookingProduct\Contracts\BookingProduct as BookingProductContract; class BookingProduct extends Model implements BookingProductContract { - protected $fillable = ['location', 'show_location', 'type', 'available_every_week', 'available_from', 'available_to', 'product_id']; + protected $fillable = ['location', 'show_location', 'type', 'qty', 'available_every_week', 'available_from', 'available_to', 'product_id']; protected $with = ['default_slot', 'appointment_slot', 'event_tickets', 'rental_slot', 'table_slot']; diff --git a/packages/Webkul/BookingProduct/src/Resources/views/admin/catalog/products/accordians/booking.blade.php b/packages/Webkul/BookingProduct/src/Resources/views/admin/catalog/products/accordians/booking.blade.php index 709ecc6dc..7cc980d54 100644 --- a/packages/Webkul/BookingProduct/src/Resources/views/admin/catalog/products/accordians/booking.blade.php +++ b/packages/Webkul/BookingProduct/src/Resources/views/admin/catalog/products/accordians/booking.blade.php @@ -36,6 +36,14 @@ + +
+ + + + + @{{ errors.first('booking[qty]') }} +
@@ -110,6 +118,8 @@ location: '', + qty: 0, + available_every_week: bookingProduct.available_every_week, available_from: bookingProduct.available_from, diff --git a/packages/Webkul/Ui/src/Resources/assets/js/app.js b/packages/Webkul/Ui/src/Resources/assets/js/app.js index 3f3a961fb..8e89101b0 100755 --- a/packages/Webkul/Ui/src/Resources/assets/js/app.js +++ b/packages/Webkul/Ui/src/Resources/assets/js/app.js @@ -19,6 +19,7 @@ import Code from './directives/code'; import Alert from './directives/alert'; import DatetimeComponent from './components/datetime'; import DateComponent from './components/date'; +import TimeComponent from './components/time'; import SwatchPicker from './components/swatch-picker'; import Debounce from './directives/debounce'; @@ -41,6 +42,7 @@ Vue.directive('code', Code); Vue.directive('alert', Alert); Vue.component('datetime', DatetimeComponent); Vue.component('date', DateComponent); +Vue.component("time-component", TimeComponent); Vue.component('swatch-picker', SwatchPicker); Vue.directive('debounce', Debounce); Vue.filter('truncate', function (value, limit, trail) { diff --git a/packages/Webkul/Ui/src/Resources/assets/js/components/time.vue b/packages/Webkul/Ui/src/Resources/assets/js/components/time.vue new file mode 100644 index 000000000..299aa7105 --- /dev/null +++ b/packages/Webkul/Ui/src/Resources/assets/js/components/time.vue @@ -0,0 +1,39 @@ + + + \ No newline at end of file