<!-- Filter section, show/hide based on section state. --> <div class="pt-6" id="filter-section-1"> <div class="space-y-4"> @foreach ($categories as $category) <div class="space-y-4" wire:key="{{ $category->id }}"> <div class="flex items-center"> <input id="filter-category-2" name="category[]" value="{{ $category->id }}" type="checkbox" wire:model.live="selected_categories" id="{{ $category->slug }}" class="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"> <label for="{{ $category->slug }}" class="ml-3 text-sm text-gray-600">{{ $category->name }}</label> </div> </div> @endforeach </div> </div> </div>
Forms\Components\FileUpload::make('image') ->columnSpan('full') ->image() ->imageEditor() ->panelLayout('grid') ->multiple() ->directory('brands') ->maxFiles(5) ->reorderable() ->preserveFilenames(),
<!-- Form Group --> <div> <div class="flex justify-between items-center"> <label for="password" class="block text-sm mb-2 dark:text-white">Password</label> <a wire:navigate class="text-sm text-blue-600 decoration-2 hover:underline font-medium dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" href="/forgot-password">Forgot password?</a> </div> <div class="relative"> <input type="password" id="password" name="password" class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:focus:ring-gray-600" required aria-describedby="password-error"> <div class="hidden absolute inset-y-0 end-0 flex items-center pointer-events-none pe-3"> <svg class="h-5 w-5 text-red-500" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"> <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" /> </svg> </div> </div> <p class="hidden text-xs text-red-600 mt-2" id="password-error">8+ characters required</p> </div> <!-- End Form Group -->
->actions([ Action::make('View Order') ->url(fn (Order $record): string => OrderResource::getUrl('view', $record)) ->icon('heroicon-m-eye'), ]);