@extends('adminlte.app') @section('content')

Dashboard de Vendas

@if ($message = Session::get('success'))

{{ $message }}

@endif @if ($message = Session::get('danger'))

{{ $message }}

@endif
Filtros Relatórios
@if($permissao->criar_clientes) @endif
Filtros
@if($permissao->visualizar_todas_vendas )
@endif

Litros Vendidos

{{number_format($totaisLitros,2,',','.')}}

Objetivos Globais

{{number_format($porcObjs,2,',','.')}} %

{{--

{{number_format($vendasTotal,2,',','.')}}

--}} {{--

{{number_format($objsTotal,2,',','.')}}

--}}
{{-- --}}

Litros Vendidos

{{number_format($totaisLitrosTfuel,2,',','.')}}

Objetivos Tfuel

{{number_format($porcObjsTfuel,2,',','.')}} %

{{--

{{number_format($vendasTotal,2,',','.')}}

{{number_format($objsTotal,2,',','.')}}

--}}
{{-- --}}

Litros Vendidos

{{number_format($totaisLitrosIM,2,',','.')}}

Objetivos IM

{{number_format($porcObjsIM,2,',','.')}} %

{{--

{{number_format($vendasTotal,2,',','.')}}

{{number_format($objsTotal,2,',','.')}}

--}}
{{-- --}}

Litros Vendidos

{{number_format($totaisLitrosGC,2,',','.')}}

Objetivos Grandes Contas

{{number_format($porcObjsGC,2,',','.')}} %

{{--

{{number_format($vendasTotal,2,',','.')}}

{{number_format($objsTotal,2,',','.')}}

--}}
{{-- --}}

Litros Vendidos

{{number_format($totaisLitrosPostos,2,',','.')}}

Objetivos Postos

{{number_format($porcObjsPostos,2,',','.')}} %

{{--

{{number_format($vendasTotal,2,',','.')}}

{{number_format($objsTotal,2,',','.')}}

--}}
{{-- --}}
{{-- --}}
@foreach ($vendasTotais as $key => $vendaTotal) @endforeach {{-- --}} @foreach($vendasPorMesPassado as $venda) @foreach ($vendasTotais as $key => $vendaTotal ) @foreach ($vendaTotal['vendasPorMesPassado'] as $vpmpt) @if ($vpmpt->mes && $vpmpt->mes == $venda->mes) @endif @endforeach @endforeach @endforeach
Meses - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} Litros - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} {{ $vendaTotal['canalAbr'] }} - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} TFUEL - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} IM - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} GC - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} Postos - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }} HP - {{ date('Y', strtotime($filtros['data_inicio'])) -1 }}
@if($venda->mes < 10){{0}}@endif{{$venda->mes}}/{{ $venda->ano}} {{ $venda->litros}} {{ $vpmpt->litros }}
@foreach ($vendasTotais as $key => $vendas) @endforeach @foreach($vendasPorMes as $venda) @foreach ($vendasTotais as $key => $vendaTotal ) @endforeach @endforeach
Meses - {{ date('Y', strtotime($filtros['data_inicio']))}} Litros - {{ date('Y', strtotime($filtros['data_inicio']))}} {{ $vendas['canalAbr'] }} - {{ date('Y', strtotime($filtros['data_inicio']))}}
@if($venda->mes < 10){{0}}@endif{{$venda->mes}}/{{ $venda->ano}} {{ $venda->litros}} @php $valorFinal = 0; foreach ($vendaTotal['vendasPorMes'] as $vpmt) { if ($vpmt->mes && $vpmt->mes == $venda->mes){ $valorFinal = $vpmt->litros; } } @endphp {{ $valorFinal }}
{{-- --}}
{{--
--}} {{-- --}} {{--
--}} {{-- --}}
{{-- --}}
@foreach ($produtos['headers'] as $header ) @endforeach @foreach ($produtos['vendas'] as $venda) @foreach ($produtos['headers'] as $header ) @endforeach @endforeach
{{ $header }}
{{ $venda[$produtos['headers']['h' . $loop->iteration]] }}
{{-- --}}

Litros por Produtos

{{-- Produtos Valor --}}
{{-- --}}
@foreach ($eurosPorProdutos['headers'] as $header ) @endforeach @foreach ($eurosPorProdutos['vendas'] as $venda) @foreach ($eurosPorProdutos['headers'] as $header ) @endforeach @endforeach
{{ $header }}
{{ $venda[$eurosPorProdutos['headers']['h' . $loop->iteration]] }}
{{-- --}}

Valor por Produtos

{{-- Produtos Valor - FIM --}} {{-- Consumo Zero --}}
{{-- Fim Consumo Zero --}}
@endsection