{{ $company ? $company->name : 'Mon Entreprise' }}
@if($company && $company->address){{ $company->address }}@else Ville @endif
@if($company && $company->phone){{ $company->phone }}@else Téléphone @endif
Devis N°: {{ $quote->number }}
Date devis: {{ $quote->date->format('d/m/Y') }}

Devis pour:
{{ $quote->client->name }}
{{ $quote->client->address }}
@if($quote->client->ice)ICE: {{ $quote->client->ice }}
@endif @if($quote->client->phone)Tél: {{ $quote->client->phone }}
@endif @if($quote->client->email)Email: {{ $quote->client->email }}@endif

@foreach($quote->items as $item) @endforeach
Produit/Service Description Qté Prix unitaire TVA Total HT Total TTC
{{ $item->product_name }} {{ $item->description }} {{ $item->quantity }} {{ $item->unit }} {{ number_format($item->unit_price, 2) }} MAD {{ $item->vat_rate }}% {{ number_format($item->total_ht, 2) }} MAD {{ number_format($item->total_ttc, 2) }} MAD
Sous-total HT: {{ number_format($quote->subtotal_ht, 2) }} MAD
TVA: {{ number_format($quote->total_vat, 2) }} MAD
Total TTC: {{ number_format($quote->total_ttc, 2) }} MAD
ARRÊTÉ LE PRÉSENT DEVIS À LA SOMME DE :
{{ \App\Helpers\NumberToWords::convert($quote->total_ttc) }}
@if($quote->notes || $quote->terms)
@if($quote->notes)

Notes:

{{ $quote->notes }}

@endif @if($quote->terms)

Conditions:

{{ $quote->terms }}

@endif
@endif @if($company && $company->footer_template) @endif