Add Calculationpresets and Calculator modules with CRUD functionality, migrations, and UI components.

This commit is contained in:
2026-01-24 13:23:03 +01:00
parent fd61f14ffe
commit 0356063015
14 changed files with 560 additions and 2 deletions
@@ -0,0 +1,17 @@
<div>
<x-header>
{{ __('Calculator') }}
<x-slot name="headerleft">
<flux:select wire:model.live="calculationpreset" placeholder="Select a preset">
@foreach ( \App\Models\Calculationpreset::all() as $preset)
<flux:select.option value="{{ $preset->id }}">{{ $preset->name }}</flux:select.option>
@endforeach
</flux:select>
</x-slot>
</x-header>
<div class="container m-auto my-8 bg-elephant border border-elephant-900 rounded-lg shadow p-6 text-gray-50">
{{ $preset->name }} : {{ $preset->price_kwh }}
</div>
</div>