@extends('layouts.backend.app') @section("content")
@if(Session::has('success'))

{{Session::get('success')}}

@endif @if(Session::has('error'))

{{Session::get('error')}}

@endif

@if(isset($_GET['start']) && isset($_GET['end'])) {{getAllQuotation($_GET['start'], $_GET['end'])->count()}} @else {{getAllQuotation()->count()}} @endif

Dévis

@if(isset($_GET['start']) && isset($_GET['end'])) {{getAllOrders($_GET['start'], $_GET['end'])->count()}} @else {{getAllOrders()->count()}} @endif

Commandes

@if(isset($_GET['start']) && isset($_GET['end'])) {{sizeof(optionalProductSale($_GET['start'], $_GET['end']))}} @else {{sizeof(optionalProductSale())}} @endif

VAS
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getQuoteByAdvisorActor($_GET['start'], $_GET['end']) as $key => $a) @endforeach @else @foreach(getQuoteByAdvisorActor() as $key => $a) @endforeach @endif @if(isset($key)) @endif
# Nom du conseillé Dévis généré
{{++$key}} {{$a->firstname . " ". $a->lastname}} {{$a->nb_dev}}
{{++$key}} {{$a->firstname . " ". $a->lastname}} {{$a->nb_dev}}
{{++$key}} Prospects @if(isset($_GET['start']) && isset($_GET['end'])) {{getAllQuotation($_GET['start'], $_GET['end'])->count()-$sum}} @else {{getAllQuotation()->count()-$sum}} @endif
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getQuoteByAutoInsurType($_GET['start'], $_GET['end'])->get() as $key => $q) @endforeach @else @foreach(getQuoteByAutoInsurType()->get() as $key => $q) @endforeach @endif
# Formule Dévis généré
{{++$key}} {{$q->guarante}} {{$q->quote_nb}}
{{++$key}} {{$q->guarante}} {{$q->quote_nb}}
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getOrderByAdvisorActor($_GET['start'],$_GET['end']) as $key => $a) @endforeach @else @foreach(getOrderByAdvisorActor() as $key => $a) @endforeach @endif @if(isset($key)) @endif
# Nom du conseillé Commande générée
{{++$key}} {{$a->firstname . " ". $a->lastname}} {{$a->nb_dev}}
{{++$key}} {{$a->firstname . " ". $a->lastname}} {{$a->nb_dev}}
{{++$key}} Client @if(isset($_GET['start']) && isset($_GET['end'])) {{getAllOrders($_GET['start'], $_GET['end'])->count()-$sum}} @else {{getAllOrders()->count()-$sum}} @endif
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getSaleByAutoInsurType($_GET['start'], $_GET['end'])->get() as $key => $q) @endforeach @else @foreach(getSaleByAutoInsurType()->get() as $key => $q) @endforeach @endif
# Formule commandes
{{++$key}} {{$q->guarante}} {{$q->sales_nb}}
{{++$key}} {{$q->guarante}} {{$q->sales_nb}}
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getVASByAdvisorActor($_GET['start'],$_GET['end']) as $key => $a) @endforeach @else @foreach(getVASByAdvisorActor() as $key => $a) @endforeach @endif @if(isset($key)) @endif
# Nom du conseillé Service VAS vendu
{{++$key}} {{$a->firstname . " ". $a->lastname}} {{$a->nb_dev}}
{{++$key}} {{$a->firstname . " ". $a->lastname}} {{$a->nb_dev}}
{{++$key}} Client @if(isset($_GET['start']) && isset($_GET['end'])) {{sizeof(optionalProductSale($_GET['start'], $_GET['end']))-$sum}} @else {{sizeof(optionalProductSale())-$sum}} @endif
@endsection @section('header-script') @endsection @section('footer-script') @endsection @section('custom-script') @endsection