@extends('layouts.admin') @section('title', '영업시간 및 휴무일 설정') @section('content')

@yield('title')

@csrf @method('PUT')
기본 영업시간 및 예약 운영 설정

활성화 시 고객들이 해당 뷰티샵의 스케줄에 맞춰 예약을 진행할 수 있습니다.

is_reservation_enabled) ? 'checked' : '' }}>
@error('booking_unit_minutes')
{{ $message }}
@enderror
@error('business_start_time')
{{ $message }}
@enderror
@error('business_end_time')
{{ $message }}
@enderror
@error('break_start_time')
{{ $message }}
@enderror
@error('break_end_time')
{{ $message }}
@enderror
정기 휴무 및 특별 예외 일정 관리
@php // 💡 유효성 검사 실패 시 입력했던 old() 데이터와 기존 DB 데이터를 완벽히 연동 $weeklyOffs = old('weekly_off', data_get($shop->holiday_configs, 'weekly_off', []));$daysMap = ['mon' => '월요일', 'tue' => '화요일', 'wed' => '수요일', 'thu' => '목요일', 'fri' => '금요일', 'sat' => '토요일', 'sun' => '일요일']; $monthlyDateOffs = old('monthly_date_off', data_get($shop->holiday_configs, 'monthly_date_off', [])); $dateRangeOffs = old('date_range_off', data_get($shop->holiday_configs, 'date_range_off', [])); $customExceptions = old('custom_exceptions', data_get($shop->holiday_configs, 'custom_exceptions', [])); @endphp
요일별 정기 휴무 설정

매주 반복되는 정기 휴무 요일 (중복 불가)

@foreach($weeklyOffs as $index =>$wOff)
@endforeach
매월 일자별 고정 휴무

매월 특정한 날짜(1~31일) 고정 휴무

@foreach($monthlyDateOffs as $index =>$mon)
@endforeach

일정 기간 휴무 설정

시작일과 종료일을 같게 지정하면 1일만 휴무 처리되며, 다르면 해당 기간 전체가 휴무 처리됩니다.

@foreach($dateRangeOffs as $index =>$range)
@endforeach

특정 날짜 영업시간 변경

크리스마스나 이벤트 등으로 평소와 영업시간이 달라지는 날의 시간을 설정합니다.

@foreach($customExceptions as $index =>$exc)
@endforeach
@endsection