Intentando integrar con air-datepicker
This commit is contained in:
@@ -38,8 +38,8 @@ class Index extends Component
|
||||
$this->fecha = now()->format('Y-m-d');
|
||||
$this->caja = 1;
|
||||
|
||||
if (Turno::where('fecha', $this->fecha)->exists()) {
|
||||
$this->turno = Turno::where('fecha', $this->fecha)->max('numero_turno') + 1;
|
||||
if (Turno::where('fecha', now())->exists()) {
|
||||
$this->turno = Turno::where('fecha', now())->max('numero_turno') + 1;
|
||||
} else {
|
||||
$this->turno = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user