@extends('adminlte.app') @section('content')
{{ $message }}
{{ $message }}
Canal | Total Faturado | Total Vencido | % Incumprimento |
---|---|---|---|
{{ $canal->nome_canal }} | {{ number_format($canal->totalfaturado, 2, ',', '.') }} | {{ number_format($canal->totalvencido, 2, ',', '.') }} | {{ (isset($canal->totalvencido) && isset($canal->totalfaturado)) ? number_format($canal->totalvencido / $canal->totalfaturado * 100,2) : 0 }}% |
Total | {{ number_format($totais['totalfaturado'], 2, ',', '.') }} | {{ number_format($totais['totalvencido'], 2, ',', '.') }} | {{ (isset($totais['totalvencido']) && isset($totais['totalfaturado'])) ? number_format($totais['totalvencido'] / $totais['totalfaturado'] * 100,2) : 0 }}% |
Canal | Nome Cliente |
Fatura | Valor | Emissão | Vencimento | Vencido | Status | @if($permissao->exibir_todas_faturas)Gestor | @endif|||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $item->canal->nome_canal }} | @if($item->origem == "IM" and isset($item->cliente_im->nome)){{ $item->cliente_im->nome }} | @elseif($item->origem =="TFUEL" and isset($item->cliente_tfuel->nome)){{ $item->cliente_tfuel->nome }} | @elseCliente Não encontrado | @endif{{ $item->num_documento }} | {{ number_format($item->valor_total, 2, ',', '.') }} | {{ date('d/m/Y', strtotime($item->dt_emissao)) }} | {{ date('d/m/Y', strtotime($item->dt_vencimento)) }} | @if ($item->status == "Pendente") @if($item->dt_vencimento < \Carbon\Carbon::now())Sim | @elseNão | @endif @else@endif @if ($item->sinistro == "Sim") | Sinistrado | @elsestatus == "Paga") class="bg-success" @elseif ($item->status == "PPago") style="background-color: #ffc000;" @elseif($item->status == "Promessa de PagamentoV") class="bg-danger" @endif> {{ $item->status }} | @endif @if($permissao->exibir_todas_faturas) @if($item->origem == "IM" and isset($item->cliente_im->gestor_user->name)){{ $item->cliente_im->gestor_user->name }} | @elseif($item->origem =="TFUEL" and isset($item->cliente_tfuel->gestor_user->name)){{ $item->cliente_tfuel->gestor_user->name }} | @else@endif @endif |