@extends('template') @section('content')
Relatório Financeiro
Filtros
{!! Form::open(['route' => $action->route, 'method' => $action->method]) !!}
{!! Form::text('name', '', ['class' => 'form-control', 'placeholder' => '', 'autocomplete' => 'off']) !!} {!! Form::label('', 'Nome:') !!}
{!! Form::select('tipo', ['' => '', 'prepago' => 'Pré Pago', 'pospago' => 'Pós Pago'], '',['class'=>'form-control']) !!} {!! Form::label('', 'Tipo de Conta:') !!}
{!! Form::select('status', ['' => '', 'canceled' => 'Cancelada', 'paid' => 'Paga', 'pending' => 'Pendente','vencido' => 'Vencida'], '',['class'=>'form-control']) !!} {!! Form::label('', 'Status') !!}
{!! Form::select('forma_pg', ['' => '', 'billet' => 'Boleto', 'credit_card' => 'Cartão de crédito'], '', ['class'=>'form-control']) !!} {!! Form::label('', 'Forma de Pagamento') !!}
{!! Form::select('periodo', ['ordereds.created_at' => 'Geradas em', 'ordereds.data_pagamento' => 'Pagas em', 'ordereds.data_vencimento' => 'Vencidas em'], '', ['class'=>'form-control']) !!} {!! Form::label('', 'Datas:') !!}
{!! Form::text('dt_ger_ini', '', ['class' => 'form-control', 'placeholder' => '', 'autocomplete' => 'off', 'id' => 'dt_ger_ini']) !!} {!! Form::label('', '') !!}
{!! Form::text('dt_ger_fim', '', ['class' => 'form-control', 'autocomplete' => 'off', 'id' => 'dt_ger_fim']) !!} {!! Form::label('', '') !!}
{!! Form::select('nfe', ['' => '', 1=> 'Gerada', 2 => 'Não gerada'], '', ['class'=>'form-control']) !!} {!! Form::label('', 'Nota Fiscal:') !!}
{!! Form::label('', ' ') !!}
{!! Form::select('estado',getEstadosSiglas(), '',['class'=>'form-control']) !!} {!! Form::label('', 'Estado:') !!}
{!! Form::select('cliente', ['' => '', 'PF' => 'Pessoa Física', 'PJ' => 'Pessoa Jurídica'], '',['class'=>'form-control']) !!} {!! Form::label('', 'PF/PJ') !!}
{!! Form::label('', ' ') !!}
{!! Form::label('', ' ') !!}

{!! Form::close() !!}
{{--
Faturas Pagas: {{ $vlrTotal->paid }} Faturas Vencidas: {{ $vlrTotal->vencido }} Faturas Pendentes: {{ $vlrTotal->pending }}
--}} @foreach($invoices as $fatura) @foreach($fatura->itens as $item) @endforeach @endforeach @if(strlen($totalValor)) @endif
Fatura Cliente Vendedor Tipo Dt. Ger. Dt. Pgto. Dt. Venc. Valor Ações Disponíveis
{!! $fatura->id !!} {!! $fatura->name !!} {!! $fatura->vendedor !!} {!! $fatura->type_account !!} {!! $fatura->data_criacao !!} {!! $fatura->data_pagamento !!} {!! $fatura->data_vencimento !!} {!! financialPrice($fatura->total) !!} @if(routeAcess('admin.invoice.remove') && !in_array($fatura->status, ['Cancelado', 'Pago'])) @endif @if(routeAcess('admin.customers.sendmail')) @endif @if(!in_array($fatura->status, ['Cancelado', 'Pago'])) @endif @if($fatura->status != 'Cancelado') @if($fatura->status == 'Pago' or $fatura->nf_antecipada == '1') @if($fatura->nfes_status == 1) @elseif($fatura->nfes_status == 2) @else @if(empty($fatura->nfes) or empty($fatura->nfes_status)) @if(isset($orderedAmount[$fatura->id])) @endif @else @endif @if(!is_null($fatura->nfdebito)) @endif @endif @endif @endif @if(routeAcess('admin.faturas.baixa')) @if($fatura->status != 'Pago' && $fatura->status != 'Cancelado') @if($fatura->user_id != '7385') @endif @endif @endif @if($fatura->status != 'Cancelado' && $fatura->status != 'Pago' && $fatura->fatura_id != 0 ) @endif

{{$totalValor}}

-
{!! $invoices->appends($data)->render() !!}
@stop() @section('js-admin-financial') @stop()