text/x-generic pdf.blade.php ( HTML document, UTF-8 Unicode text ) {{ $title }}
{{ htmlspecialchars('Distribucciones El Puerto 2016, S.L')}}
Nif {{ htmlspecialchars('B72306848') }}
Razón Social {{ htmlspecialchars('Distribucciones El Puerto 2016, S.L') }}
Dirección {{ htmlspecialchars('C\ Calvario, nº 27') }}, {{ htmlspecialchars('El Puerto de Santa Maria') }}-{{ htmlspecialchars('11500') }}
Teléfono {{ htmlspecialchars('645 52 26 84 - 655 03 09 21') }}
IBAN {{ htmlspecialchars('ES24 2100 3986 1102 0014 5464') }}
RESUMEN DE FACTURACIÓN
Periodo {{ date('d-m-Y', strtotime($date_from)) }}{{ date('d-m-Y', strtotime($date_to)) }}
{{ $client->nombreComercial}}
Nif {{ $client->nif }}
Razón Social {{ $client->razonSocial }}
Dirección {{ $client->direccion }}, {{ $client->ciudad }} {{ $client->codigoPostal }}
Teléfono {{ $client->telf }}

@foreach($products as $product) @endforeach
Producto Cantidad Precio (€) IVA (%) Total (€)
{{ $product->name }} {{ number_format($product->quantity, 2) }} {{ number_format($product->price, 2) }} € {{ $product->iva }}% {{ number_format($product->total, 2) }} €

@foreach($basesPorIva as $iva => $details) @endforeach @foreach($ivas as $iva => $amount) @endforeach @foreach($basesPorIva as $iva => $details) @if ($recargo > 0 & ($iva == 10 || $iva == 21)) @php $recargoPercent = $iva == 10 ? 1.4 : 5.2; $recargoPrice = $details['base'] * ($recargoPercent / 100); @endphp @endif @endforeach
BASE ({{$iva}}%) {{ number_format($details['base'], 2) }} €
IVA ({{ $iva }}%) {{ number_format($amount, 2) }} €
Recargo_{{$iva}}%IVA ({{$recargoPercent}}%) {{ number_format($recargoPrice, 2) }} €
TOTAL {{ number_format($total, 2) }} €