Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nillegal's avatar

[SOLVED] Filament Table Column Data calculation based on Filament Form Builder

Hello everyone, I'm building a very simple (I thought it would be simple) estimation app with Filament and I'm struggling a little bit. I have an Estimation component, it has both a Form with only a DatePicker and a Table. In the Table, I have a column "Estimated value" which is based on the DatePicker value (default value is now()), so whenever I select a random date, the "Estimated value" will be recalculated. Is there any way to achieve this? And do you think I'm doing it the right way?

In the component, I already have

public $date;

public function mount($date)
    {
        $this->date = $date;
    }

    public function render()
    {
        return view(
            'livewire.admin.estimation.estimation',
            [
                'date' => $this->date
            ]
        );
    }

My blade file is :

<div>
    <form>
        {{ $this->form }}
    </form>
    {{ $this->table }}
</div>

I always end up with Unable to resolve dependency [Parameter #1 [ <required> $date ]] in class App\Http\Livewire\Admin\Estimation\Estimation with the {{ $this->table }} highlighted.

Thank you so much. Have a good day.

0 likes
2 replies
nillegal's avatar

@aurawindsurfing thanks for your reply. i just realized that i did something wrong while passing the parameter. it is actually solved. appreciate 🙏🏽🙏🏽

Please or to participate in this conversation.