- Added maximum discount settings configurable by the administrator. - Implemented discount calculations in the quote confirmation process. - Introduced transport options with associated costs, including handling for exceeding maximum piece limits. - Updated frontend to display discounts and transport information in the quote summary. - Created new database migrations for storing discount and transport settings. - Developed a new Filament page for managing global discount settings. - Enhanced email templates to include discount and transport details. - Added tests to ensure proper functionality of discounts and transport calculations.
31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<x-mail::message>
|
|
<x-slot:header>
|
|
<x-mail::header :url="config('app.url')">
|
|
<img src="{{ config('app.url') }}/images/kreios-logo.jpg" alt="Krèios" style="height: 40px;">
|
|
</x-mail::header>
|
|
</x-slot:header>
|
|
|
|
# Nuovo preventivo n. {{ $preventivo->numero }}
|
|
|
|
È arrivata una nuova richiesta di preventivo dal configuratore.
|
|
|
|
**Cliente:** {{ $preventivo->cliente?->nominativo }}
|
|
**Email:** {{ $preventivo->cliente?->email }}
|
|
**Telefono:** {{ $preventivo->cliente?->telefono ?: '—' }}
|
|
**Prodotti:** {{ $preventivo->items->count() }}
|
|
@if($preventivo->haSconti())
|
|
**Totale parziale:** € {{ number_format($preventivo->subtotale, 2, ',', '.') }}
|
|
**Sconti applicati:** {{ (float) $preventivo->sconto_1 }}% + {{ (float) $preventivo->sconto_2 }}% extra
|
|
@endif
|
|
@if($preventivo->trasporto)
|
|
**Trasporto:** {{ $preventivo->trasporto_etichetta }} — {{ $preventivo->trasportoDaQuantificare() ? 'da quantificare' : '€ '.number_format($preventivo->trasporto_importo, 2, ',', '.') }}
|
|
@endif
|
|
**Totale:** € {{ number_format($preventivo->totale, 2, ',', '.') }}
|
|
|
|
<x-mail::button :url="$adminUrl">
|
|
Apri nel backoffice
|
|
</x-mail::button>
|
|
|
|
Krèios
|
|
</x-mail::message>
|