arcadiasuite/plus/resources/views/relatorios/mdfe.blade.php

37 lines
973 B
PHP

@extends('relatorios.default')
@section('content')
<table class="table-sm table-borderless" style="border-bottom: 1px solid rgb(206, 206, 206); margin-bottom:10px; width: 100%;">
<thead>
<tr>
<th>Remetente</th>
<th>Valor da Carga</th>
<th>Num. doc</th>
<th>Chave</th>
<th>Estado</th>
<th>Data</th>
@if(__countLocalAtivo() > 1)
<th>Local</th>
@endif
</tr>
</thead>
<tbody>
@foreach($data as $key => $item)
<tr class="@if($key%2 == 0) pure-table-odd @endif">
<td>{{ $item->empresa->nome }}</td>
<td>{{ __moeda($item->valor_carga) }}</td>
<td>{{ $item->mdfe_numero }}</td>
<td>{{ $item->chave }}</td>
<td>{{ strtoupper($item->estado_emissao) }}</td>
<td>{{ __data_pt($item->created_at) }}</td>
@if(__countLocalAtivo() > 1)
<td class="text-danger">{{ $item->localizacao->descricao }}</td>
@endif
</tr>
@endforeach
</tbody>
</table>
<h4>Total: R$ {{ __moeda($data->sum('valor_carga')) }}</h4>
@endsection