{{ __('Calculator') }} @foreach ( $presets as $preset) {{ $preset->name }} @endforeach @if($calculationpreset)
Inputs Enter your calculation data.
Time h min
Count on Plate More Objects per Plate?
Enable
@if($selcountonplate)
Count on Plate Additional Cost per Piece per Plate
@endif
Filament Selection Filter by manufacturer, filament type and color.
Select Type Manufacturer Name Color Amount (g) @foreach ($filaments as $filament) {{ $filament->type?->name ?? 'N/A' }} {{ $filament->manufacturer?->name ?? 'N/A' }} {{ $filament->name }}
{{ $filament->color?->name ?? 'N/A' }}
@if(isset($selectedFilaments[$filament->id])) @endif
@endforeach
Outputs Get your ready for use Prices.
@php $totalFilamentCost = 0; foreach ($selectedFilaments as $id => $amount) { $f = $filaments->firstWhere('id', $id); if ($f && $f->price && $f->weight) { $totalFilamentCost += ($f->price / $f->weight) * $amount; } } $energyCost = ($calculationpreset->price_kwh ?? 0) * 0.25 * ($timeunit == 'h' ? $time : $time / 60); $printerCost = ($calculationpreset->factor_printer ?? 0) * ($timeunit == 'h' ? $time : $time / 60); $maintenanceCost = ($calculationpreset->factor_maintenance ?? 0) * ($timeunit == 'h' ? $time : $time / 60); $totalCost = $totalFilamentCost + $energyCost + $printerCost + $maintenanceCost + ($additionalcostunit == 'per Piece' ? $additionalcost : $additionalcost / max(1, $countonplate ?? 1)); @endphp

Time: {{ $time }}{{ $timeunit }}

Filament Cost: {{ number_format($totalFilamentCost, 2) }}€

Energy Cost: {{ number_format($energyCost, 2) }}€

Printer Cost: {{ number_format($printerCost, 2) }}€

Maintenance Cost: {{ number_format($maintenanceCost, 2) }}€

@if($countonplate > 0 )

Additional Cost: {{ $additionalcost }}€ ({{ $additionalcostunit }})

Per Item Cost: {{ number_format($totalCost / $countonplate, 2) }}€ | {{ number_format(($totalCost * ($calculationpreset->factor_price / 100)/ $countonplate), 2) }}€
@endif
Total Cost: {{ number_format($totalCost, 2) }}€ | {{ number_format($totalCost * ($calculationpreset->factor_price / 100), 2) }}€
@endif