@php
use App\Support\ConfigurazioneFormatter;
use Illuminate\Support\Facades\Storage;
$cliente = $preventivo->cliente;
$logoPath = public_path('images/kreios-logo.jpg');
$logoBase64 = file_exists($logoPath) ? base64_encode(file_get_contents($logoPath)) : null;
@endphp
{{ $i + 1 }}. {{ $item->nome_modello ?: 'Prodotto' }}
@if($item->sistema) ({{ ucfirst($item->sistema) }}) @endif
@if($imgAbs)
|
@endif
@foreach($rows as $row)
| {{ $row['label'] }} | {{ $row['value'] }} |
@endforeach
|
Quantità: {{ $item->quantita }} × € {{ number_format($item->prezzo_unitario, 2, ',', '.') }}
= € {{ number_format($item->prezzo_totale, 2, ',', '.') }}
@endforeach
@php $importi = $preventivo->importiSconto(); @endphp
@if($preventivo->haSconti() || $preventivo->trasporto)
| Totale parziale | € {{ number_format($preventivo->subtotale, 2, ',', '.') }} |
@if((float) $preventivo->sconto_1 > 0)
| 1° sconto concesso ({{ rtrim(rtrim(number_format($preventivo->sconto_1, 2, ',', ''), '0'), ',') }}%) | − € {{ number_format($importi['sconto_1'], 2, ',', '.') }} |
@endif
@if((float) $preventivo->sconto_2 > 0)
| 2° sconto extra ({{ rtrim(rtrim(number_format($preventivo->sconto_2, 2, ',', ''), '0'), ',') }}%) | − € {{ number_format($importi['sconto_2'], 2, ',', '.') }} |
@endif
@if($preventivo->trasporto)
| Totale imponibile offerta | € {{ number_format($importi['imponibile'], 2, ',', '.') }} |
{{-- A capo dopo "Campania": "Contributo trasporto Campania / entro 150 km". --}}
{!! preg_replace('/(Campania)\s+/u', '$1 ', e($preventivo->trasporto_etichetta)) !!}
@unless($preventivo->trasportoDaQuantificare())
{{ $preventivo->items->sum('quantita') }} pz × € {{ number_format(config("preventivi.trasporto.zone.{$preventivo->trasporto}.importo"), 2, ',', '.') }}
@endunless
|
{{ $preventivo->trasporto === \App\Models\Preventivo::TRASPORTO_OLTRE_MAX ? '—' : ($preventivo->trasportoDaQuantificare() ? 'da quantificare' : '€ '.number_format($preventivo->trasporto_importo, 2, ',', '.')) }} |
@endif
@endif
{{ $preventivo->trasporto ? 'Totale' : 'Totale imponibile' }}: € {{ number_format($preventivo->totale, 2, ',', '.') }}
@if($preventivo->trasportoDaQuantificare())
Prezzi IVA esclusa. Preventivo indicativo, salvo verifica tecnica e rilievo misure.