@php $logoPath = public_path('frontassets/img/logo_eco_granit.png'); if (!file_exists($logoPath)) { $logoPath = public_path('assets/media/logos/default.svg'); } @endphp @if(file_exists($logoPath)) @else
ECOGRANIT
@endif

ECOGRANIT

DEVIS N° {{ $devi->id }}

ECOGRANIT - Plans de travail sur mesure
Adresse de l'entreprise - Téléphone - Email
SIRET: 000 000 000 00000 - TVA: FR00000000000

INFORMATIONS CLIENT

{{ $devi->client->prenom }} {{ $devi->client->nom }}

{{ $devi->client->adresse }}

{{ $devi->client->code_postal }} {{ $devi->client->ville }}

Tél: {{ $devi->client->telephone }}

Email: {{ $devi->client->email }}

DÉTAILS DU DEVIS

Date: {{ $dateGeneration }}

Validité: 30 jours

TVA: {{ $devi->tva }}%

MATÉRIAUX SÉLECTIONNÉS

Matière: {{ $devi->matiere->titre }}

Coloris: {{ $devi->colori->titre }}

Finition: {{ $devi->finition->titre }}

Bordure: {{ $devi->bordure->titre ?? 'Standard' }}

@if($devi->prixcoloris->count() > 0)

PLANS DE TRAVAIL ET CRÉDENCES

@foreach($devi->prixcoloris as $item) @endforeach
Type Longueur (mm) Largeur (mm) Épaisseur Surface (m²) Prix unitaire Montant
{{ $item->type == 'pldt' ? 'Plan de travail' : 'Crédence' }} {{ $item->longeur }} {{ $item->largeur }} {{ $item->prixcolori->epaisseur->titre ?? 'N/A' }} {{ number_format(($item->longeur / 1000) * ($item->largeur / 1000), 2) }} {{ number_format(($item->prixcolori->prix ?? 0) * (1 + ($devi->addperc / 100)), 2) }}€/m² {{ number_format($item->montant, 2) }}€
@endif @if($devi->optionsdecoupes->count() > 0)

OPTIONS DE DÉCOUPE

@foreach($devi->optionsdecoupes as $option) @endforeach
Option Quantité Prix unitaire Montant
{{ $option->optionsdecoupe->titre }} {{ $option->quantite }} {{ number_format($option->prixu * (1 + ($devi->addperc / 100)), 2) }}€ {{ number_format($option->montant, 2) }}€
@endif @if($devi->services->count() > 0)

SERVICES

@foreach($devi->services as $service) @endforeach
Service Prix
{{ $service->service->titre }} {{ number_format($service->devis_prix, 2) }}€
@endif
Total HT: {{ number_format($devi->total_ht, 2) }}€
TVA ({{ $devi->tva }}%): {{ number_format($devi->total_ht * ($devi->tva / 100), 2) }}€
Total TTC: {{ number_format($totalTTC, 2) }}€