@extends('layouts.app') @section('title', $event->name.' — 日程設定') @section('page-title', $event->name) @section('content') @include('event.partials._workspace_toolbar')
@foreach([ ['label' => '申込者数', 'value' => $bookingStats['total'], 'class' => 'text-primary'], ['label' => '確定', 'value' => $bookingStats['confirmed'], 'class' => 'text-success'], ['label' => '保留', 'value' => $bookingStats['pending'], 'class' => 'text-warning'], ['label' => 'キャンセル', 'value' => $bookingStats['cancelled'], 'class' => 'text-danger'], ] as $stat)
{{ $stat['value'] }}
{{ $stat['label'] }}
@endforeach
@include('event.partials._schedule_settings', [ 'event' => $event, 'scheduleState' => $scheduleState, 'staffMembers' => $staffMembers, ])
手動で枠を追加・旧形式の一括生成

通常は上の「保存して予約枠を生成」で十分です。個別調整や従来の日付範囲指定が必要なときだけ使います。

@csrf

1件追加

@csrf

日付範囲で一括生成(簡易)

@foreach(['日'=>0,'月'=>1,'火'=>2,'水'=>3,'木'=>4,'金'=>5,'土'=>6] as $label => $d) @endforeach
@php $scheduleCalPresenter = app(\App\Services\EventScheduleCalendarPresenter::class); $scheduleNow = now(config('app.timezone')); @endphp

予約枠一覧

最大1000件 @if($schedules->isNotEmpty()) @endif
@include('event.partials._schedule_calendar', ['calendarEvents' => $calendarEvents, 'embedded' => true])
@if($schedules->isNotEmpty()) @endif @forelse($schedules as $s) @php $booked = (int) ($s->active_bookings_count ?? 0); $slotState = $scheduleCalPresenter->resolveState($s, $booked, $scheduleNow); $slotColors = $scheduleCalPresenter->colors($slotState); @endphp @empty @endforelse
状態 日時 定員 / 申込
{{ $scheduleCalPresenter->stateLabel($slotState) }} {{ $s->start_at?->timezone(config('app.timezone'))->format('Y/m/d H:i') }} 〜 {{ $s->end_at?->timezone(config('app.timezone'))->format('H:i') }} @if($s->capacity) {{ $booked }} / {{ $s->capacity }}名 @else 無制限@if($booked > 0)({{ $booked }}件)@endif @endif
@csrf @method('DELETE')
枠がありません。上で設定を保存し「予約枠を生成」を実行してください。
@endsection @push('scripts') @endpush