@extends('layouts.app') @section('content')

Block Time Slots

@if(session('success'))
{{ session('success') }}
@endif
@forelse($blocks as $block) @empty @endforelse
Date Time Type Reason Actions
{{ $block->block_date->format('M d, Y') }} @if($block->is_recurring) (Every {{ \Carbon\Carbon::create()->day($block->recurring_day_of_week)->format('l') }}) @endif @if($block->start_time && $block->end_time) {{ \Carbon\Carbon::parse($block->start_time)->format('g:i A') }} - {{ \Carbon\Carbon::parse($block->end_time)->format('g:i A') }} @else Entire Day @endif {{ $block->is_recurring ? 'Recurring' : 'One-time' }} {{ $block->reason ?? 'N/A' }}
@csrf @method('DELETE')
No blocked time slots
{{ $blocks->links() }}
@endsection