Add Calculationpresets and Calculator modules with CRUD functionality, migrations, and UI components.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user