HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/www/printmanager/vendor/filament/support/src/Concerns/HasVerticalAlignment.php
<?php

namespace Filament\Support\Concerns;

use Closure;
use Filament\Support\Enums\VerticalAlignment;

trait HasVerticalAlignment
{
    protected VerticalAlignment | string | Closure | null $verticalAlignment = null;

    public function verticalAlignment(VerticalAlignment | string | Closure | null $alignment): static
    {
        $this->verticalAlignment = $alignment;

        return $this;
    }

    public function verticallyAlignStart(bool | Closure $condition = true): static
    {
        return $this->verticalAlignment(fn (): ?VerticalAlignment => $this->evaluate($condition) ? VerticalAlignment::Start : null);
    }

    public function verticallyAlignCenter(bool | Closure $condition = true): static
    {
        return $this->verticalAlignment(fn (): ?VerticalAlignment => $this->evaluate($condition) ? VerticalAlignment::Center : null);
    }

    public function verticallyAlignEnd(bool | Closure $condition = true): static
    {
        return $this->verticalAlignment(fn (): ?VerticalAlignment => $this->evaluate($condition) ? VerticalAlignment::End : null);
    }

    public function getVerticalAlignment(): VerticalAlignment | string | null
    {
        return $this->evaluate($this->verticalAlignment);
    }
}