SIRE - - {{ $type == 'sale' ? 'VENTAS' : 'COMPRAS' }}

{{-- fecha --}} @php $date = date('d-m-Y'); @endphp
Fecha: {{ $date }}
{{-- tabla --}} @foreach ($records as $record) @php $label = array_key_exists('label', $record) ? $record['label'] : ''; $class = ''; $style = ''; if ($label == 'DANGER') { $style = 'color: red;'; $class = 'text-danger'; } elseif ($label == 'STRONG') { $style = 'font-weight: bold;'; $class = 'text-strong'; } @endphp @endforeach
Servicio F. Emisión @if ($type == 'sale') Cliente @else Proveedor @endif Tipo Documento Serie Número Total
{{ $record['service'] }} {{ $record['date'] }} {{ $record['name_company'] }}
{{ $record['number_company'] }}
{{ $record['document_type'] }} {{ $record['serie'] }} {{ $record['number'] }} {{ $record['total'] }}