@extends('crm.master') @section('title', 'Product Closures') @section('content')

Product Closures

Products closed for set dates

Create Closure
@include('crm.components.alerts')
@forelse($closures as $key => $closure) @empty @endforelse
# Name Product Applied to Start Date End Date Applicable Booking Days Status Actions
{{ $closures->firstItem() + $key }} {{ $closure->name }} @if($closure->apply_to_all_products) All Products @else {{ $closure->products_count }} product(s) @endif {{ $closure->start_date->format('d M Y') }} {{ $closure->end_date->format('d M Y') }} @php echo match($closure->schedule) { 'everyday' => 'Everyday', 'weekdays' => 'Weekdays (Mon–Fri)', 'weekends' => 'Weekends (Sat–Sun)', 'custom' => implode(', ', $closure->applicable_days ?? []), default => $closure->schedule, }; @endphp @if($closure->enabled) Enabled @else Disabled @endif
@csrf @method('PATCH')

No product closures found

Create First Closure
@if($closures->hasPages()) @endif
@endsection