PHP Rebuild
CI / ci (push) Canceled after 0s

Initial PHP rebuild of the app
This commit is contained in:
Stefan Lazic committed 2026-09-05 08:21:33 +01:00
1 parent 8a2b211069
commit 2ef3654841
690 files changed
+33944 -12046

No files matched your search

+1
View File
@@ -0,0 +1 @@
<x-layouts.staff :business="$business"><main class="mx-auto max-w-3xl px-5 py-8 sm:px-8 lg:px-12 lg:py-12"><a href="{{ route('owner.dashboard') }}" class="text-xs font-bold uppercase tracking-widest text-white/60">← Owner workspace</a><p class="mt-12 text-[10px] font-bold uppercase tracking-[0.3em] text-accent">Opening hours</p><h1 class="mt-3 text-4xl font-black tracking-tight">Business hours</h1>@if (session('status'))<div class="mt-6 rounded-tile bg-accent p-4 text-sm font-bold text-ink">{{ session('status') }}</div>@endif @if ($errors->any())<div class="mt-6 rounded-tile border border-red-200 bg-red-50 p-4 text-sm text-red-700">{{ $errors->first() }}</div>@endif<form method="POST" action="{{ route('owner.hours.update') }}" class="mt-8 space-y-3">@csrf @method('PUT')@foreach ($days as $day)@php($item = $hours->get($day))<div class="grid items-center gap-3 rounded-jumbo bg-white p-4 text-ink sm:grid-cols-[120px_1fr_1fr_auto]"><p class="text-sm font-bold">{{ ucfirst(strtolower($day)) }}</p><input name="{{ strtolower($day) }}_open" type="time" value="{{ $item && $item->opensAtMinutes !== null ? sprintf('%02d:%02d', intdiv($item->opensAtMinutes, 60), $item->opensAtMinutes % 60) : '10:00' }}" class="rounded-tile border border-line px-3 py-2 text-sm"><input name="{{ strtolower($day) }}_close" type="time" value="{{ $item && $item->closesAtMinutes !== null ? sprintf('%02d:%02d', intdiv($item->closesAtMinutes, 60), $item->closesAtMinutes % 60) : '19:00' }}" class="rounded-tile border border-line px-3 py-2 text-sm"><label class="flex items-center gap-2 text-xs font-bold"><input name="{{ strtolower($day) }}_closed" type="checkbox" value="1" @checked($item?->isClosed) class="rounded border-line text-accent"> Closed</label></div>@endforeach<x-ui.button type="submit">Save hours</x-ui.button></form></main></x-layouts.staff>