Merge pull request #3259 from jitendra-webkul/1.0

Issue #3219 fixed
This commit is contained in:
Jitendra Singh 2020-06-16 20:56:22 +05:30 committed by GitHub
commit e845c291c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View File

@ -13,8 +13,8 @@ class Booking extends Model implements BookingContract
protected $fillable = [
'qty',
'from',
'to',
'available_from',
'available_to',
'order_item_id',
'booking_product_event_ticket_id',
'product_id',

View File

@ -154,6 +154,17 @@
available_to: ''
}
}
},
created: function() {
if (this.booking.available_from) {
this.booking.available_from = "{{ $bookingProduct->available_from->format('Y-m-d H:i:s') }}";
}
if (this.booking.available_to) {
this.booking.available_to = "{{ $bookingProduct->available_to->format('Y-m-d H:i:s') }}";
}
}
});
</script>

View File

@ -2,7 +2,7 @@
$direction = core()->getCurrentLocale()->direction;
@endphp
@if ($velocityMetaData->slider)
@if ($velocityMetaData && $velocityMetaData->slider)
<slider-component direction="{{ $direction }}"></slider-component>
@endif