@extends('relatorios.default') @section('content') @if(__countLocalAtivo() > 1) @endif @foreach($data as $key => $item) @if(__countLocalAtivo() > 1) @endif @if($item->status == 1) @endif @endforeach
Fornecedor Valor Valor Pago Data Vencimento Data Pagamento EstadoLocal
{{ $item->fornecedor ? $item->fornecedor->razao_social : '--' }} {{ __moeda($item->valor_integral) }} {{ $item->status ? __moeda($item->valor_pago) : '--' }} {{ __data_pt($item->data_vencimento, 0) }} {{ $item->status ? __data_pt($item->data_pagamento, 0) : '--' }} @if($item->status == 0) @if(strtotime($item->data_vencimento) < strtotime(date('Y-m-d'))) Em atraso @else Pendente @endif @else Quitado @endif {{ $item->localizacao->descricao }}
Desconto R$ {{ __moeda($item->desconto) }} Acréscimo {{ __moeda($item->acrescimo) }} @if($item->contaEmpresa) Conta {{ $item->contaEmpresa->nome }} @endif

Total: R$ {{ __moeda($data->sum('valor_integral')) }}

@endsection