commit
e845c291c6
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
$direction = core()->getCurrentLocale()->direction;
|
||||
@endphp
|
||||
|
||||
@if ($velocityMetaData->slider)
|
||||
@if ($velocityMetaData && $velocityMetaData->slider)
|
||||
<slider-component direction="{{ $direction }}"></slider-component>
|
||||
@endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue