removed dark mod and applied fixes for text colors
This commit is contained in:
@@ -221,7 +221,7 @@ new class extends Component {
|
||||
<div class="mb-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div>
|
||||
<flux:heading size="xl">{{ __('admin.blocked_times') }}</flux:heading>
|
||||
<flux:text class="mt-1 text-zinc-500 dark:text-zinc-400">
|
||||
<flux:text class="mt-1 text-zinc-500">
|
||||
{{ __('admin.blocked_times_description') }}
|
||||
</flux:text>
|
||||
</div>
|
||||
@@ -248,11 +248,11 @@ new class extends Component {
|
||||
</div>
|
||||
|
||||
{{-- List --}}
|
||||
<div class="rounded-lg border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-800">
|
||||
<div class="rounded-lg border border-zinc-200 bg-white">
|
||||
@forelse($blockedTimes as $blocked)
|
||||
<div
|
||||
wire:key="blocked-{{ $blocked->id }}"
|
||||
class="flex flex-col gap-4 border-b border-zinc-200 p-4 last:border-b-0 dark:border-zinc-700 sm:flex-row sm:items-center sm:justify-between"
|
||||
class="flex flex-col gap-4 border-b border-zinc-200 p-4 last:border-b-0 sm:flex-row sm:items-center sm:justify-between"
|
||||
>
|
||||
<div class="flex-1">
|
||||
<div class="flex items-center gap-3">
|
||||
@@ -268,14 +268,14 @@ new class extends Component {
|
||||
{{ __('admin.all_day') }}
|
||||
</flux:badge>
|
||||
@else
|
||||
<span class="text-sm text-zinc-600 dark:text-zinc-400">
|
||||
<span class="text-sm text-zinc-600">
|
||||
{{ $blocked->start_time }} - {{ $blocked->end_time }}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($blocked->reason)
|
||||
<p class="mt-2 text-sm text-zinc-500 dark:text-zinc-400">
|
||||
<p class="mt-2 text-sm text-zinc-500">
|
||||
{{ $blocked->reason }}
|
||||
</p>
|
||||
@endif
|
||||
@@ -297,7 +297,7 @@ new class extends Component {
|
||||
@empty
|
||||
<div class="p-8 text-center">
|
||||
<flux:icon name="calendar-days" class="mx-auto h-12 w-12 text-zinc-400" />
|
||||
<flux:text class="mt-2 text-zinc-500 dark:text-zinc-400">
|
||||
<flux:text class="mt-2 text-zinc-500">
|
||||
{{ __('admin.no_blocked_times') }}
|
||||
</flux:text>
|
||||
</div>
|
||||
|
||||
@@ -90,7 +90,7 @@ new class extends Component {
|
||||
<div>
|
||||
<div class="mb-6">
|
||||
<flux:heading size="xl">{{ __('admin.working_hours') }}</flux:heading>
|
||||
<flux:text class="mt-1 text-zinc-500 dark:text-zinc-400">
|
||||
<flux:text class="mt-1 text-zinc-500">
|
||||
{{ __('admin.working_hours_description') }}
|
||||
</flux:text>
|
||||
</div>
|
||||
@@ -103,20 +103,20 @@ new class extends Component {
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="rounded-lg border border-zinc-200 bg-white p-6 dark:border-zinc-700 dark:bg-zinc-800">
|
||||
<div class="rounded-lg border border-zinc-200 bg-white p-6">
|
||||
<form wire:submit="save">
|
||||
<div class="space-y-1">
|
||||
@foreach (range(0, 6) as $day)
|
||||
<div
|
||||
wire:key="day-{{ $day }}"
|
||||
class="flex flex-col gap-4 border-b border-zinc-200 py-4 last:border-b-0 dark:border-zinc-700 sm:flex-row sm:items-center"
|
||||
class="flex flex-col gap-4 border-b border-zinc-200 py-4 last:border-b-0 sm:flex-row sm:items-center"
|
||||
>
|
||||
<div class="flex items-center gap-4 sm:w-48">
|
||||
<flux:switch
|
||||
wire:model.live="schedule.{{ $day }}.is_active"
|
||||
aria-label="{{ __('admin.working_hours') }} - {{ \App\Models\WorkingHour::getDayName($day) }}"
|
||||
/>
|
||||
<span class="font-medium text-zinc-900 dark:text-zinc-100">
|
||||
<span class="font-medium text-zinc-900">
|
||||
{{ \App\Models\WorkingHour::getDayName($day) }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -129,7 +129,7 @@ new class extends Component {
|
||||
wire:model.live="schedule.{{ $day }}.start_time"
|
||||
class="w-36"
|
||||
/>
|
||||
<span class="text-zinc-500 dark:text-zinc-400">{{ __('admin.to') }}</span>
|
||||
<span class="text-zinc-500">{{ __('admin.to') }}</span>
|
||||
<flux:input
|
||||
type="time"
|
||||
wire:model.live="schedule.{{ $day }}.end_time"
|
||||
@@ -138,7 +138,7 @@ new class extends Component {
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2 text-sm">
|
||||
<span class="text-zinc-500 dark:text-zinc-400">
|
||||
<span class="text-zinc-500">
|
||||
({{ $this->formatTime($schedule[$day]['start_time']) }} - {{ $this->formatTime($schedule[$day]['end_time']) }})
|
||||
</span>
|
||||
@php($slots = $this->getSlotCount($day))
|
||||
@@ -160,13 +160,13 @@ new class extends Component {
|
||||
</div>
|
||||
@enderror
|
||||
@else
|
||||
<span class="text-zinc-400 dark:text-zinc-500">{{ __('admin.closed') }}</span>
|
||||
<span class="text-zinc-400">{{ __('admin.closed') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex justify-end border-t border-zinc-200 pt-6 dark:border-zinc-700">
|
||||
<div class="mt-6 flex justify-end border-t border-zinc-200 pt-6">
|
||||
<flux:button variant="primary" type="submit">
|
||||
{{ __('admin.save_working_hours') }}
|
||||
</flux:button>
|
||||
|
||||
Reference in New Issue
Block a user