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

@lang('DEVIS')
{{ $item->numero }}


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

@lang('OBJET') : {{ $item->objet }}

@foreach ($item->group_lignes as $group_ligne) @foreach ($group_ligne->lignes as $ligne) @endforeach @endforeach
@lang('REF.') @lang('DESIGNATION') @lang('QTE') @lang('PRIX UNITAIRE') @lang('NBRE. JOURS') @lang('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%;">

@lang('CONDITIONS DE REGLEMENT') :
{{ $item->conditions_paiement }}

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

@lang('CONDITIONS DE REGLEMENT') :
{{ $item->conditions_paiement }}

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

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

@lang('Signature client')

@lang('Comptabilité')

@stop