@extends('layouts.app') @section('title', 'Détails de la Demande #' . $demande->id . ' - L\'unique Création') @push('styles') @endpush @section('content')

Détails de la Demande #{{ $demande->id }}

@if ($demande->id_prospectBGB)

Demande BGB # @if($demande->ref_demandeBGB > 4) {{ $demande->ref_demandeBGB }} @else {{ $demande->id_prospectBGB }}-{{ $demande->ref_demandeBGB }} @endif

@endif
@if ($demande->demande_etat_id <= 2)   Valider la demande @endif

Demande #{{ $demande->id }} - {{ $demande->typeConstruction?->libelle }} {{ $demande->typeHabitation?->libelle }}

@if(session('success-update-demande'))
{{ session('success-update-demande') }}
@endif
@csrf
@error('habitation')
{{ $message }}
@enderror
@error('construction')
{{ $message }}
@enderror
@error('etage')
{{ $message }}
@enderror
@error('ascenseur')
{{ $message }}
@enderror
@error('cage_escalier')
{{ $message }}
@enderror
@error('couloir')
{{ $message }}
@enderror
@error('accessibilite')
{{ $message }}
@enderror

  Liste des devis

@foreach($demande->devis as $index => $devis) @endforeach
# Devis BGB Montant Devis Poseur
{{ $devis->id_prospectBGB }}-{{ $devis->ref_devis }} {{ $devis->description ?? 'Aucune description' }}
@if($devis->pdf_devis) Voir Télécharger @endif
{{ number_format($devis->total_ht, 2, ',', ' ') }} € HT
{{ number_format($devis->total_ttc, 2, ',', ' ') }} € TTC
@if($devis->pdf_devis_pose) Voir Télécharger @endif

  Devis L'Unique Création

@if(session('success-devis'))
{{ session('success-devis') }}
@endif
@csrf @method('POST')

1/ Prestations

@foreach ($prestations as $prestation)
id, $prestationIdsLiees) ? 'checked' : '' }}>
@endforeach

2/ Etat devis

is_controle ? 'checked' : '' }}>
@if($demande->is_controle) Date du contrôle : {{ formatDate($demande->date_controle, 'd/m/Y à H:i') }} @endif
is_acompte ? 'checked' : '' }}>

3/ Dépot Devis Signé

@if($documentsLuc['devis_pose_signe'])
  • {{ $documentsLuc['devis_pose_signe']->nom_fichier }}
  • {{ $documentsLuc['devis_pose_signe']->created_at->format('d/m/Y H:i') }}
  • {{ $documentsLuc['devis_pose_signe']->user->name }}
@else

Aucun devis signé déposé.

@endif

Visite de chantier - Etude de faisabilité - Prise de côtes

@if(session('success-pdf-prise-cotes'))
{{ session('success-pdf-prise-cotes') }}
@endif
@if($documentsLuc['prise_cote'])
  • {{ $documentsLuc['prise_cote']->nom_fichier }}
  • {{ $documentsLuc['prise_cote']->created_at->format('d/m/Y H:i') }}
  • {{ $documentsLuc['prise_cote']->user->name }}
@else

Aucun fichier de prise de côtes déposé.

@endif
Option 1 : Déposer le PDF complété
Option 2 : Compléter le formulaire pour générer un PDF
@csrf
@error('habitation')
{{ $message }}
@enderror
@error('construction')
{{ $message }}
@enderror
@error('etage')
{{ $message }}
@enderror
@error('ascenseur')
{{ $message }}
@enderror
@error('cage_escalier')
{{ $message }}
@enderror
@error('couloir')
{{ $message }}
@enderror
@error('accessibilite')
{{ $message }}
@enderror
Cloisons
priseCote->cloisons_finies ?? '') === '1' ? 'checked' : '' }}>
priseCote->cloisons_finies ?? '') === '0' ? 'checked' : '' }}>
@error('cloisons_finies')
{{ $message }}
@enderror
priseCote->cloisons_enduit ?? '') === '1' ? 'checked' : '' }}>
priseCote->cloisons_enduit ?? '') === '0' ? 'checked' : '' }}>
@error('cloisons_enduit')
{{ $message }}
@enderror
priseCote->cloisons_peinture ?? '') === '1' ? 'checked' : '' }}>
priseCote->cloisons_peinture ?? '') === '0' ? 'checked' : '' }}>
@error('cloisons_peinture')
{{ $message }}
@enderror
Sols
@error('sols_type')
{{ $message }}
@enderror
priseCote->sols_finis_poses ?? '') === '1' ? 'checked' : '' }}>
priseCote->sols_finis_poses ?? '') === '0' ? 'checked' : '' }}>
@error('sols_finis_poses')
{{ $message }}
@enderror
priseCote->sols_chauffage ?? '') === '1' ? 'checked' : '' }}>
priseCote->sols_chauffage ?? '') === '0' ? 'checked' : '' }}>
@error('sols_chauffage')
{{ $message }}
@enderror
Murs
@error('murs_type')
{{ $message }}
@enderror
@error('murs_epaisseur')
{{ $message }}
@enderror
priseCote->murs_porteurs ?? '') === '1' ? 'checked' : '' }}>
priseCote->murs_porteurs ?? '') === '0' ? 'checked' : '' }}>
@error('murs_porteurs')
{{ $message }}
@enderror
Plafonds
@error('plafonds_type')
{{ $message }}
@enderror
priseCote->plafonds_chauffage ?? '') === '1' ? 'checked' : '' }}>
priseCote->plafonds_chauffage ?? '') === '0' ? 'checked' : '' }}>
@error('plafonds_chauffage')
{{ $message }}
@enderror
Electricité
@error('electricite_emplacement')
{{ $message }}
@enderror

PV réception

@if($documentsLuc['pv_reception'])
  • {{ $documentsLuc['pv_reception']->nom_fichier }}
  • {{ $documentsLuc['pv_reception']->created_at->format('d/m/Y H:i') }}
  • {{ $documentsLuc['pv_reception']->user->name }}
@else

Aucun PV de réception déposé.

@endif
Option 1 : Déposer le PDF complété
Compléter le formulaire pour générer un PDF
@csrf

pvReception->etat_reception ?? '') === 'sans_reserve' ? 'checked' : '' }}>

pvReception->etat_reception ?? '') === 'avec_reserve' ? 'checked' : '' }}>

pvReception->etat_reception ?? '') === 'refusee' ? 'checked' : '' }}>
pvReception->etat_reception ?? '') === 'differee' ? 'checked' : '' }}>



PV réception Signé

Déposer le PDF Signé
@if($documentsLuc['pv_reception_signe'])
  • {{ $documentsLuc['pv_reception_signe']->nom_fichier }}
  • {{ $documentsLuc['pv_reception_signe']->created_at->format('d/m/Y H:i') }}
@else

Aucun PV de réception signé déposé.

@endif

  Dépot de fichier

@if($demande->docsDeposes->isNotEmpty()) @foreach($demande->docsDeposes as $index => $document) @endforeach @else @endif
# Nom fichier Date création Déposé par Actions
{{ $index + 1 }} {{ $document->nom_fichier }} {{ $document->created_at->format('d/m/Y H:i') }} {{ $document->user->name }} Voir Télécharger
Aucun document déposé
@foreach($demande->estimations as $index => $estimation)

  Estimation de pose devis {{ $estimation->id_prospectBGB }}-{{ $estimation->ref_demandeBGB }}

# Produits Petites Quincaillerie Déplacements Réception / Manutention Prise de côtes Compléments
{{ $index + 1 }} {{ number_format($estimation->produits_total_ht, 2, ',', ' ') }} € {{ number_format($estimation->quincaillerie_total_ht, 2, ',', ' ') }} € {{ number_format($estimation->pose_dechet_total_ht, 2, ',', ' ') }} € @if($estimation->has_reception_manutention) {{ number_format($estimation->reception_manutention_total_ht, 2, ',', ' ') }} € @endif @if($estimation->has_prise_cote) @if($estimation->has_majoration_reception == 0) OFFERT @else {{ number_format($estimation->prise_cote_total_ht, 2, ',', ' ') }} € @endif @endif @if($estimation->complements->isNotEmpty()) {{ number_format($estimation->complement_total_ht, 2, ',', ' ') }} € @endif
@php $pose_total_ttc_raw = $estimation->pose_total_ht * (1 + $estimation->tva / 100); @endphp
Total HT pose {{ number_format($estimation->pose_total_ht, 2, ',', ' ') }} €
TVA {{ number_format($estimation->tva, 2, ',', ' ') }} %
Total TTC pose {{ number_format($pose_total_ttc_raw, 2, ',', ' ') }} €
Total HT fourniture devis #{{ $estimation->id_prospectBGB }}-{{ $estimation->ref_demandeBGB }} {{ number_format($estimation->devis?->total_ht ?? 0, 2, ',', ' ') }} €
Total TTC fourniture devis #{{ $estimation->id_prospectBGB }}-{{ $estimation->ref_demandeBGB }} {{ number_format($estimation->devis?->total_ttc ?? 0, 2, ',', ' ') }} €
Total HT fourniture + pose {{ number_format($estimation->devis?->total_ht + $estimation->pose_total_ht ?? 0, 2, ',', ' ') }} €
Total TTC fourniture + pose {{ number_format($estimation->devis?->total_ttc + $pose_total_ttc_raw ?? 0, 2, ',', ' ') }} €

  Petite quincaillerie

Forfait Quantité Ouvertures Type cloison Total HT
{{ number_format($estimation->forfait_unitaire_ht_quincaillerie, 2, ',', ' ') }} € {{ $estimation->quantite }} {{ $estimation->ouverture }} {{ $estimation->type_cloison }} {{ number_format($estimation->quincaillerie_total_ht, 2, ',', ' ') }} €

  Déplacement pose / déchets

Forfait Quantité Difficulté accès Distance du siège Total HT
{{ number_format($estimation->forfait_ht_deplacement, 2, ',', ' ') }} € {{ $estimation->quantite }} {{ $estimation->difficulte_acces }} {{ $estimation->zone_pose_dechet }} {{ number_format($estimation->pose_dechet_total_ht, 2, ',', ' ') }} €
@if($estimation->has_reception_manutention)

  Manutention / Réception

Forfait Quantité Etage Total HT
{{ number_format($estimation->forfait_ht_dechet + $estimation->forfait_unitaire_ht_reception_manutention, 2, ',', ' ') }} € {{ $estimation->quantite }} {{ $estimation->etage }} {{ number_format($estimation->reception_manutention_total_ht, 2, ',', ' ') }} €
@endif @if($estimation->has_prise_cote)

  Déplacement prise de cotes

Forfait Quantité Distance du siège Ouvertures cintrées/voutées Total HT
{{ number_format($estimation->forfait_ht_prise_cote, 2, ',', ' ') }} € {{ $estimation->quantite }} {{ $estimation->zone_cote }} @if($estimation->has_ouverture_cintree_voutee) Oui @else Non @endif @if($estimation->has_majoration_reception == 0) OFFERT @else {{ number_format($estimation->prise_cote_total_ht, 2, ',', ' ') }} € @endif
@endif

  Liste des Produits

@foreach($estimation->produits as $produit) @endforeach
# Produits Matière Limites dimensionnelles Total HT
{{ $loop->iteration }} {{ $produit->produit }} {{ $produit->matiere }} {{ $produit->limite_dimensionnelle }} {{ number_format($produit->produit_total_ht, 2, ',', ' ') }} €
{{ $estimation->produits_total_ht }} €

  Liste des Compléments

@foreach($estimation->complements as $index => $complement) @endforeach
# Complément Total HT
{{ $index + 1 }} {{ $complement->complement }} {{ number_format($complement->total_ht, 2, ',', ' ') }} €
{{ $estimation->complement_total_ht }} €
@endforeach
@endsection @push('scripts') @endpush