This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<template v-for="tag in tags"> | |
<input type="checkbox" value="{{ tag }}" v-model="selectedTags" id="tag-{{ tag }}"> | |
<label for="tag-{{ tag }}">{{ tag }}</label> | |
</template> | |
<p v-show="selectedTags.length != 0"> | |
Filters: <span v-for="tag in selectedTags" class="label">{{ tag }}</span> | |
</p> | |
<ul> | |
<li v-for="card in activeCards">{{ card.name }}</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$request->validate([ | |
'bookings' => 'required|array|min:1', | |
'bookings.*.hotelId' => 'required|exists:pm_hotel,id', // check id in pm_hotel | |
'bookings.*.from' => 'required|date', | |
'bookings.*.to' => 'required|date|after:bookings.*.from', | |
'bookings.*.night' => 'required|numeric|min:0|not_in:0', | |
'customer.first_name' => 'required|min:2', |