{{ $totalHospedagem += $agenda->hospedagem ? $agenda->parametros->valor_hospedagem : 0.0 }}
{{ $totalEstacionamento += $agenda->estacionamento ? $agenda->estacionamento : 0.0 }}
{{ $totalPedagio += $agenda->pedagio ? $agenda->pedagio : 0.0 }}
{{ $totalUber += $agenda->uber ? $agenda->uber : 0.0 }}
{{ $totalAlmoco += $agenda->almoco ? $agenda->parametros->valor_almoco : 0.0 }}
{{ $totalJantar += $agenda->jantar ? $agenda->parametros->valor_jantar : 0.0 }}
{{ $totalLinha = $agenda->uber + $agenda->pedagio + $agenda->estacionamento + ($agenda->jantar ? $agenda->parametros->valor_jantar : 0.0) + ($agenda->almoco ? $agenda->parametros->valor_almoco : 0.0) + ($agenda->hospedagem ? $agenda->parametros->valor_hospedagem : 0.0) }}
| {{ $i + 1 }} |
{{ date('d/m/Y', strtotime($agenda->data)) }} |
{{ $agenda->status }} |
{{ $agenda->titulo }} |
{{ $agenda->viagem ? 'Sim' : 'Não' }} |
{{ $agenda->hospedagem ? number_format($agenda->parametros->valor_hospedagem, 2, ',', '.') : '0,00' }}
|
{{ $agenda->almoco ? number_format($agenda->parametros->valor_almoco, 2, ',', '.') : '0,00' }}
|
{{ $agenda->jantar ? number_format($agenda->parametros->valor_jantar, 2, ',', '.') : '0,00' }}
|
{{ $agenda->pedagio ? number_format($agenda->pedagio, 2, ',', '.') : '0,00' }}
|
{{ $agenda->estacionamento ? number_format($agenda->estacionamento, 2, ',', '.') : '0,00' }}
|
{{ $agenda->uber ? number_format($agenda->uber, 2, ',', '.') : '0,00' }}
|
{{ number_format($totalLinha, 2, ',', '.') }} |
@endforeach