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

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

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

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

@endif
File active des commandes

Statistiques actuelles

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

Commandes vendues

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

Services facultatifs

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

Dévis générés

5 dernières Commandes

@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(lastFiveOrders($_GET['start'], $_GET['end']) as $order)
{{ get_product_type($order->product_type) }}
{{ $order->number_n }} ( {{ dateAgo($order->created_at) }} )
{{get_commande_percentage($order->status)}}%
{{get_commande_percentage($order->status)}}%
@endforeach @else @foreach(lastFiveOrders() as $order)
{{ get_product_type($order->product_type) }}
{{ $order->number_n }} ( {{ dateAgo($order->created_at) }} )
{{get_commande_percentage($order->status)}}%
{{get_commande_percentage($order->status)}}%
@endforeach @endif
@role('advisor')

Alertes Relances clients

{{--
--}}
@endrole
@role('advisor')

SMS Rapide

{{csrf_field()}}

Email Rapide

{{csrf_field()}}

Contrat Auto bientôt à expiration

Ventes par compagnie

@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getSaleByCompany($_GET['start'], $_GET['end'])->get() as $key => $c) @endforeach @else @foreach(getSaleByCompany()->get() as $key => $c) @endforeach @endif
{{ ++$key }} {{ $c->compname }} {{ $c->sales }}
{{ round($c->sales*100/(getAllProductContratContract($_GET['start'], $_GET['end'],1)->count()+getAllProductContratContract($_GET['start'], $_GET['end'],2)->count()+getAllProductContratContract($_GET['start'], $_GET['end'],3)->count()+getAllProductContratContract($_GET['start'], $_GET['end'],4)->count()),2) }}%
{{ ++$key }} {{ $c->compname }} {{ $c->sales }}
{{ round($c->sales*100/(getAllProductContratContract(null, null,1)->count()+getAllProductContratContract(null, null,2)->count()+getAllProductContratContract(null, null,3)->count()+getAllProductContratContract(null, null,4)->count()),2) }}%
@endrole
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(lastFiveCallMe($_GET['start'], $_GET['end']) as $key => $call) @endforeach @else @foreach(lastFiveCallMe() as $key => $call) @endforeach @endif
{{ ++$key }} {{ $call->call_name }} {{ $call->call_phone }} @if($call->advisor_conclusion==1) Renouvellement @elseif($call->advisor_conclusion==2) Nouveau devis @else Information @endif {{ dateAgo($call->created_at) }}
{{ ++$key }} {{ $call->call_name }} {{ $call->call_phone }} @if($call->advisor_conclusion==1) Renouvellement @elseif($call->advisor_conclusion==2) Nouveau devis @else Information @endif {{ dateAgo($call->created_at) }}
@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(getAllOrders($_GET['start'], $_GET['end'])->limit(5)->get() as $key => $contrat) @endforeach @else @foreach(getAllOrders()->limit(5)->get() as $key => $contrat) @endforeach @endif
{{ ++$key }} {{ $contrat->policy_number }} {{get_product_type($contrat->product_type)}} {{ dateAgo($contrat->created_at) }}
{{ ++$key }} {{ $contrat->policy_number }} {{get_product_type($contrat->product_type)}} {{ dateAgo($contrat->created_at) }}

Statistiques des livraisons

Statistiques Livreurs

@if(isset($_GET['start']) && isset($_GET['end'])) @foreach(deliveryManStats($_GET['start'], $_GET['end']) as $key => $c) @endforeach @foreach(deliveryManStats($_GET['start'], $_GET['end']) as $key => $c) @endforeach @else @foreach(deliveryManStats() as $key => $c) @endforeach @foreach(deliveryManStats() as $key => $c) @endforeach @endif
# Nom du livreur Livraison Ratio
{{ ++$key }} {{ $c->firstname }} {{ $c->lastname }} {{ $c->nb }}
{{ round($c->nb*100/$sum,2) }}%
{{ ++$key }} {{ $c->firstname }} {{ $c->lastname }} {{ $c->nb }}
{{ round($c->nb*100/$sum,2) }}%

Zones livraisons

@endsection @section('header-script') @endsection @section('footer-script') @endsection @section('custom-script')