@extends('pdf.main', ['title' => __('menu.quote-create-with-day') ]) @section('content')

DEVIS
{{ $item->numero }}

CONTACT : {{ $item->corporation->telephone }}
ADRESSE : {{ strtoupper($item->corporation->adresse) }}
DATE: {{ date('d-m-Y', $item->date) }}
CLIENT: {{ strtoupper($item->partner->designation) }}
NCC: {{ $item->partner->numero_compte_contribuable }}
TEL: {{ $item->partner->phones->first()->content }}
ADRESSE: {{ $item->partner->adresse }}

OBJET : {{ $item->objet }}

@foreach ($item->group_lignes as $group_ligne) @foreach ($group_ligne->lignes as $ligne) @endforeach @endforeach
REF. DESIGNATION QTE PRIX UNITAIRE NBRE. JOURS MONTANTS
  {{ $group_ligne->libelle }} {{ get_amounts($group_ligne->montant) }}  
{{ $ligne->reference }} {{ $ligne->libelle }} {{ $ligne->quantite }} {{ get_amounts($ligne->prix) }} {{ $ligne->nbre_jours }} {{ get_amounts($ligne->prix_total) }}
@if ($item->montant_honoraire_agence > 0) @endif @if ($item->discount > 0) @php $montant_discount = ceil($item->montant_ht * $item->discount / 100); @endphp @endif @if ($item->montant_honoraire_agence <= 0) @endif
discount == 0) rowspan="4" @else rowspan="5" @endif style="width: 60%;">

CONDITIONS DE REGLEMENT :
{{ $item->conditions_paiement }}

Honoraire agence {{ get_amounts($item->montant_honoraire_agence) }}
Remise ({{ number_format($item->discount, 1, ',', '.') }}%){{ get_amounts($montant_discount) }}
discount == 0) rowspan="3" @else rowspan="4" @endif style="width: 60%">

CONDITIONS DE REGLEMENT :
{{ $item->conditions_paiement }}

Montant HT {{ get_amounts($item->montant_ht) }}
TVA ({{ $item->tva }}%) {{ get_amounts($item->montant_tva) }}
NET A PAYER {{ get_amounts($item->montant_ttc) }}

Arreté le présent devis à la somme de {{ convert_number_to_word((int) str_replace(' ', '', $item->montant_ttc)) }} Francs CFA

Signature client

Comptabilité

@stop