Create an interval collection of times between 8:00 am and 5:00 pm in 30 minute intervals
$timeStep = 30
$start = '08:00:00'
$end = '17:00:00'
$intervals = CarbonInterval::minutes($timeStep)->toPeriod($start, $end);Use the interval collection
| <!DOCTYPE html> | |
| <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>{{ config('app.name') }}</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> |
| includes: | |
| - ./vendor/nunomaduro/larastan/extension.neon | |
| parameters: | |
| paths: | |
| - app/ | |
| level: 5 |
Create an interval collection of times between 8:00 am and 5:00 pm in 30 minute intervals
$timeStep = 30
$start = '08:00:00'
$end = '17:00:00'
$intervals = CarbonInterval::minutes($timeStep)->toPeriod($start, $end);Use the interval collection
| { | |
| /** | |
| * Better Defaults | |
| **/ | |
| "editor.copyWithSyntaxHighlighting": false, | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| "editor.emptySelectionClipboard": false, | |
| "workbench.editor.enablePreview": false, | |
| "window.newWindowDimensions": "inherit", | |
| "editor.multiCursorModifier": "ctrlCmd", |
| <div class="flex gap-1"> | |
| <a | |
| class="block w-full rounded-md whitespace-nowrap px-3 py-2 text-sm font-normal text-gray-700 hover:bg-gray-100 focus:bg-gray-200 focus:outline-none active:text-zinc-800 active:no-underline disabled:pointer-events-none disabled:bg-transparent disabled:text-gray-400 dark:text-gray-100 dark:hover:bg-gray-600 focus:dark:bg-gray-600" | |
| href="#" | |
| > | |
| <div class="pointer-events-none"> | |
| <div class="inline-block w-[24px] text-center" data-theme-icon="light"> | |
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="inline-block h-6 w-6"> | |
| <path | |
| d="M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.166a.75.75 0 00-1.06-1.06l-1.591 1.59a.75.75 0 101.06 1.061l1.591-1.59zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM17.834 18.894a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 10-1.061 1 |
| <?php | |
| use App\Events\MessageSent; | |
| use Livewire\Volt\Component; | |
| new class extends Component | |
| { | |
| /** | |
| * @var string[] | |
| */ |
| <!-- Pricing --> | |
| <div class="max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"> | |
| <!-- Title --> | |
| <div class="max-w-2xl mx-auto text-center mb-10 lg:mb-14"> | |
| <h2 class="text-2xl font-bold md:text-4xl md:leading-tight dark:text-white">Subscription Plans</h2> | |
| <p class="mt-1 text-gray-600 dark:text-gray-400">Choose the plan that better fits your needs.</p> | |
| </div> | |
| <!-- End Title --> | |
| <!-- Grid --> |
| .shiki .highlight { | |
| @apply bg-gray-600 py-1; | |
| } | |
| .shiki .add { | |
| @apply bg-green-600/50 py-1 rounded-sm; | |
| } | |
| .shiki .del { | |
| @apply bg-red-600/50 py-1 rounded-sm; |