This commit is contained in:
Pranshu Tomar 2020-06-16 20:55:29 +05:30
parent 2ed98a2838
commit d761fc2d7e
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