Company Logo STE. AGRTRAVIS
Avenue abdelkrim el khattabi immeuble ben moussa
el gouache etage 2 Fs 3000, Fes, Maroc
tel: +212 661-577372
 
 
 
Date: {{ now()->format('Y-m-d') }}
Client: {{ ucfirst($chantier->nom_client)}}
Objectif: Construction de: {{ ucfirst($chantier->nom)}}
Devis N°: {{ $chantier->id }} / {{ now()->format('Y') }}
Localisation: {{ ucfirst($chantier->localisation)}}
@php $i = 0; $price_todispaly=0; @endphp @foreach($articlesChantier as $ac) @php $i++; $ac->tva=20;@endphp @if(!in_array($ac->id, $tabdetails->pluck('article_chantier_id')->toArray())) @php $price_todispaly = floatval($price_todispaly) + $ac->prix_estime; @endphp @else @php $prixcount=0;@endphp @foreach ($tabdetails as $detail) @if($ac->id == $detail->article_chantier_id) @php $prixcount+= $detail->prix*$detail->qte;@endphp @endif @endforeach @php $j=0; @endphp @php $j++; @endphp @foreach ($tabdetails as $detail) @if($ac->id == $detail->article_chantier_id) @php $price_todispaly+= $detail->prix*$detail->qte;@endphp @php $j++; @endphp @endif @endforeach @endif @endforeach
N° Description Quantité Unité Prix Total H.T
{{ $i }}- @php $parts = explode(':', $ac->article->designation); @endphp @if(count($parts) > 1) {{ trim($parts[0]) }}: {{ trim($parts[1]) }} @else {{ $ac->article->designation }} @endif 1 {{ $ac->article->unites }} {{ number_format($ac->prix_estime, 2) }}
{{ $i }}- @php $parts = explode(':', $ac->article->designation); @endphp @if(count($parts) > 1) {{ trim($parts[0]) }}: {{ trim($parts[1]) }} @else {{ $ac->article->designation }} @endif 1 {{ $ac->article->unites }} {{number_format($prixcount, 2)}}
{{ $i }} -{{ $j }} {{ $detail->designation }} {{ $detail->qte }} {{ $detail->unites }} {{ number_format($detail->qte*$detail->prix, 2) }}
Total Prix des articles : {{ numberToFrenchCurrency(number_format(floatval($price_todispaly) + ((floatval($price_todispaly)* $ac->tva) / 100), 2)) }} Total HT : {{ number_format(floatval($price_todispaly), 2) }}
TVA de : {{ number_format($ac->tva, 0) }}% {{ number_format((floatval($price_todispaly) * $ac->tva) / 100, 2) }}
Total TTC : {{ number_format(floatval($price_todispaly) + ((floatval($price_todispaly) * $ac->tva) / 100), 2) }}