@php @endphp @extends('admin.layouts.dashboard') @section('title') Manage Block Date & Time @endsection @push('head') @endpush @section('content')

Manage Date & Time

Schedule Date & Time
Blocked Date & Time
@php // Group blocks by date $grouped = $timeBlocks->getCollection()->groupBy(fn($b) => $b->start_datetime->format('Y-m-d')); $rowNum = 1; @endphp @forelse($grouped as $date => $blocks) @php $firstBlock = $blocks->first(); $hasFuture = $blocks->contains(fn($b) => $b->start_datetime->isFuture()); // Build slot badges $slotBadges = $blocks->map(fn($b) => $b->start_datetime->format('h:i A') . ' – ' . $b->end_datetime->format('h:i A') )->implode(', '); // Collect all IDs for this date group $groupIds = $blocks->pluck('id')->toArray(); @endphp @empty @endforelse
# Date Blocked Slots Category Remarks Actions
{{ $rowNum++ }} {{ $firstBlock->start_datetime->format('M d, Y') }} @foreach($blocks as $b) {{ $b->start_datetime->format('h:i A') }} – {{ $b->end_datetime->format('h:i A') }} @endforeach {{ $firstBlock->category }} {{ $firstBlock->remarks ?? 'N/A' }}
@if($hasFuture) @else Expired @endif

No Time Blocks Found

{{-- end table-responsive --}}
{{ $timeBlocks->onEachSide(1)->links() }}
{{-- end blocked tab --}}
Manage Appointment Schedule
@if(session('success') && request()->get('tab') === 'appt-schedule')
{{ session('success') }}
@endif
@csrf @method('PUT')
Booking Type

Choose whether customers need to pay at the time of booking or can book for free.

appointment_type === 'paid' ? 'checked' : '' }}>
appointment_type === 'free' ? 'checked' : '' }}>
$
This amount will be charged to customers at booking time.
@include('admin.partials._payment-gateway-settings', ['appSetting' => $appSetting, 'idPrefix' => 'tb_'])
@if($appSetting->appointment_type === 'paid') Paid mode: Customers will be redirected to payment page after filling the booking form. Booking is only confirmed after successful payment. @else Free mode: Customers can book directly without any payment. Booking is confirmed immediately. @endif
{{-- end appt schedule tab --}}
Appointment Form Fields
@if(session('success') && request()->get('tab') === 'appt-form-fields')
{{ session('success') }}
@endif
@csrf @method('PUT') @include('admin.partials._appointment-form-fields-settings')
{{-- end appt form fields tab --}}
{{-- end tab-content --}}
{{-- end container --}}

Block Time

@csrf
Select the date to block
Select a date to see available slots
Schedule Date & Time
Loading...
@endsection @push('scripts') @endpush