@php /** * Closed-dates (blackout) manager — the list of blocked dates plus the * add-a-date form. Rendered inside the Reservations "Closed dates" modal AND * the Settings -> Closed dates panel, so both stay in step automatically. * * @var array $blackouts upcoming blackout rows: id, blackout_date, reason * @var string $returnTo 'reservations' | 'settings' — where the save/delete * actions send the user back to. */ $blackouts = $blackouts ?? []; $returnTo = $returnTo ?? 'reservations'; $suffix = $returnTo === 'settings' ? '-set' : ''; @endphp

{{ t_raw('vendor.reservations.blackout_manager_hint') }}

@if ($blackouts) @foreach ($blackouts as $b) @endforeach @else @partial('table-empty', ['colspan' => 3, 'icon' => 'fa-calendar-times', 'msg' => t_raw('vendor.reservations.blackout_empty')]) @endif
{{ t_raw('common.date') }}{{ t_raw('vendor.reservations.blackout_col_reason') }}{{ t_raw('common.remove') }}
{!! fmt_day($b['blackout_date']) !!} {!! or_dash($b['reason']) !!}
@csrf
@csrf

{{ t_raw('vendor.reservations.blackout_form_title') }}