blockDate = today()->format('Y-m-d'); $this->blockStartTime = '09:00'; $this->blockEndTime = '10:00'; $this->blockReason = ''; $this->resetValidation(); $this->showBlockModal = true; } public function closeBlockModal(): void { $this->showBlockModal = false; $this->reset(['blockDate', 'blockStartTime', 'blockEndTime', 'blockReason']); $this->resetValidation(); } public function blockTimeSlot(): void { $this->validate(); BlockedTime::create([ 'block_date' => $this->blockDate, 'start_time' => $this->blockStartTime, 'end_time' => $this->blockEndTime, 'reason' => $this->blockReason ?: null, ]); $this->closeBlockModal(); session()->flash('block_success', __('widgets.time_slot_blocked')); } }; ?>
{{ __('widgets.create_client') }} {{ __('widgets.create_post') }} {{ __('widgets.export_users') }} {{ __('widgets.block_time_slot') }} {{ __('widgets.monthly_report') }}
@if (session('block_success'))
{{ session('block_success') }}
@endif
{{ __('widgets.block_time_slot') }}
{{ __('widgets.date') }}
{{ __('widgets.start_time') }} {{ __('widgets.end_time') }}
{{ __('widgets.reason') }} ({{ __('common.optional') }})
{{ __('common.cancel') }} {{ __('widgets.block_slot') }}